mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
Destination folder id is replaced with destination path in folder rules in create/edit a rule
This commit is contained in:
@@ -17,7 +17,8 @@
|
|||||||
data-automation-id="rule-action-card-view"
|
data-automation-id="rule-action-card-view"
|
||||||
[properties]="cardViewItems"
|
[properties]="cardViewItems"
|
||||||
[ngStyle]="cardViewStyle"
|
[ngStyle]="cardViewStyle"
|
||||||
[editable]="!readOnly">
|
[editable]="!readOnly"
|
||||||
|
[destinationPath]="destinationPath">
|
||||||
</adf-card-view>
|
</adf-card-view>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
@@ -91,6 +91,8 @@ export class RuleActionUiComponent implements ControlValueAccessor, OnInit, OnDe
|
|||||||
|
|
||||||
isFullWidth = false;
|
isFullWidth = false;
|
||||||
|
|
||||||
|
destinationPath: string;
|
||||||
|
|
||||||
form = new FormGroup({
|
form = new FormGroup({
|
||||||
actionDefinitionId: new FormControl('', Validators.required)
|
actionDefinitionId: new FormControl('', Validators.required)
|
||||||
});
|
});
|
||||||
@@ -247,6 +249,8 @@ export class RuleActionUiComponent implements ControlValueAccessor, OnInit, OnDe
|
|||||||
params: this.parameters
|
params: this.parameters
|
||||||
});
|
});
|
||||||
this.onTouch();
|
this.onTouch();
|
||||||
|
const nodeObject = selections[0];
|
||||||
|
this.destinationPath = nodeObject.path?.name + '/' + nodeObject?.name;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
|
Reference in New Issue
Block a user