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()
|
||||
multiValueSeparator: string = DEFAULT_SEPARATOR;
|
||||
|
||||
@Input()
|
||||
destinationPath: string;
|
||||
|
||||
@ViewChild(CardViewContentProxyDirective, { static: true })
|
||||
private content: CardViewContentProxyDirective;
|
||||
|
||||
@@ -110,6 +113,7 @@ export class CardViewItemDispatcherComponent implements OnChanges {
|
||||
this.componentReference.instance.copyToClipboardAction = this.copyToClipboardAction;
|
||||
this.componentReference.instance.useChipsForMultiValueProperty = this.useChipsForMultiValueProperty;
|
||||
this.componentReference.instance.multiValueSeparator = this.multiValueSeparator;
|
||||
this.componentReference.instance.destinationPath = this.destinationPath;
|
||||
}
|
||||
|
||||
private proxy(methodName, ...args) {
|
||||
|
@@ -98,11 +98,11 @@
|
||||
<input matInput
|
||||
[type]=property.inputType
|
||||
class="adf-property-value"
|
||||
title="{{property.label | translate }}"
|
||||
title="{{destinationPath ? destinationPath : property.label | translate }}"
|
||||
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
|
||||
[placeholder]="property.default"
|
||||
[attr.aria-label]="property.label | translate"
|
||||
[(ngModel)]="editedValue"
|
||||
[attr.aria-label]="destinationPath ? destinationPath : property.label | translate"
|
||||
[(ngModel)]="destinationPath"
|
||||
(blur)="update()"
|
||||
(keydown.enter)="update()"
|
||||
[disabled]="!isEditable"
|
||||
|
@@ -59,6 +59,9 @@ export class CardViewTextItemComponent extends BaseCardView<CardViewTextItemMode
|
||||
@Input()
|
||||
multiValueSeparator: string = DEFAULT_SEPARATOR;
|
||||
|
||||
@Input()
|
||||
destinationPath: string;
|
||||
|
||||
editedValue: string | string[];
|
||||
errors: CardViewItemValidator[];
|
||||
templateType: string;
|
||||
|
@@ -9,7 +9,8 @@
|
||||
[displayClearAction]="displayClearAction"
|
||||
[copyToClipboardAction]="copyToClipboardAction"
|
||||
[useChipsForMultiValueProperty]="useChipsForMultiValueProperty"
|
||||
[multiValueSeparator]="multiValueSeparator">
|
||||
[multiValueSeparator]="multiValueSeparator"
|
||||
[destinationPath]="destinationPath">
|
||||
</adf-card-view-item-dispatcher>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -57,4 +57,7 @@ export class CardViewComponent {
|
||||
/** String separator between multi-value property items. */
|
||||
@Input()
|
||||
multiValueSeparator: string = DEFAULT_SEPARATOR;
|
||||
|
||||
@Input()
|
||||
destinationPath: string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user