mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-10 14:11:42 +00:00
Destination folder id is replaced with destination path in folder rules in create/edit a rule
This commit is contained in:
@@ -57,6 +57,9 @@ export class CardViewItemDispatcherComponent implements OnChanges {
|
|||||||
@Input()
|
@Input()
|
||||||
multiValueSeparator: string = DEFAULT_SEPARATOR;
|
multiValueSeparator: string = DEFAULT_SEPARATOR;
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
destinationPath: string;
|
||||||
|
|
||||||
@ViewChild(CardViewContentProxyDirective, { static: true })
|
@ViewChild(CardViewContentProxyDirective, { static: true })
|
||||||
private content: CardViewContentProxyDirective;
|
private content: CardViewContentProxyDirective;
|
||||||
|
|
||||||
@@ -110,6 +113,7 @@ export class CardViewItemDispatcherComponent implements OnChanges {
|
|||||||
this.componentReference.instance.copyToClipboardAction = this.copyToClipboardAction;
|
this.componentReference.instance.copyToClipboardAction = this.copyToClipboardAction;
|
||||||
this.componentReference.instance.useChipsForMultiValueProperty = this.useChipsForMultiValueProperty;
|
this.componentReference.instance.useChipsForMultiValueProperty = this.useChipsForMultiValueProperty;
|
||||||
this.componentReference.instance.multiValueSeparator = this.multiValueSeparator;
|
this.componentReference.instance.multiValueSeparator = this.multiValueSeparator;
|
||||||
|
this.componentReference.instance.destinationPath = this.destinationPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
private proxy(methodName, ...args) {
|
private proxy(methodName, ...args) {
|
||||||
|
@@ -98,11 +98,11 @@
|
|||||||
<input matInput
|
<input matInput
|
||||||
[type]=property.inputType
|
[type]=property.inputType
|
||||||
class="adf-property-value"
|
class="adf-property-value"
|
||||||
title="{{property.label | translate }}"
|
title="{{destinationPath ? destinationPath : property.label | translate }}"
|
||||||
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
|
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
|
||||||
[placeholder]="property.default"
|
[placeholder]="property.default"
|
||||||
[attr.aria-label]="property.label | translate"
|
[attr.aria-label]="destinationPath ? destinationPath : property.label | translate"
|
||||||
[(ngModel)]="editedValue"
|
[(ngModel)]="destinationPath"
|
||||||
(blur)="update()"
|
(blur)="update()"
|
||||||
(keydown.enter)="update()"
|
(keydown.enter)="update()"
|
||||||
[disabled]="!isEditable"
|
[disabled]="!isEditable"
|
||||||
|
@@ -59,6 +59,9 @@ export class CardViewTextItemComponent extends BaseCardView<CardViewTextItemMode
|
|||||||
@Input()
|
@Input()
|
||||||
multiValueSeparator: string = DEFAULT_SEPARATOR;
|
multiValueSeparator: string = DEFAULT_SEPARATOR;
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
destinationPath: string;
|
||||||
|
|
||||||
editedValue: string | string[];
|
editedValue: string | string[];
|
||||||
errors: CardViewItemValidator[];
|
errors: CardViewItemValidator[];
|
||||||
templateType: string;
|
templateType: string;
|
||||||
|
@@ -9,7 +9,8 @@
|
|||||||
[displayClearAction]="displayClearAction"
|
[displayClearAction]="displayClearAction"
|
||||||
[copyToClipboardAction]="copyToClipboardAction"
|
[copyToClipboardAction]="copyToClipboardAction"
|
||||||
[useChipsForMultiValueProperty]="useChipsForMultiValueProperty"
|
[useChipsForMultiValueProperty]="useChipsForMultiValueProperty"
|
||||||
[multiValueSeparator]="multiValueSeparator">
|
[multiValueSeparator]="multiValueSeparator"
|
||||||
|
[destinationPath]="destinationPath">
|
||||||
</adf-card-view-item-dispatcher>
|
</adf-card-view-item-dispatcher>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -57,4 +57,7 @@ export class CardViewComponent {
|
|||||||
/** String separator between multi-value property items. */
|
/** String separator between multi-value property items. */
|
||||||
@Input()
|
@Input()
|
||||||
multiValueSeparator: string = DEFAULT_SEPARATOR;
|
multiValueSeparator: string = DEFAULT_SEPARATOR;
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
destinationPath: string;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user