Destination folder id is replaced with destination path in folder rules in create/edit a rule

This commit is contained in:
Jatin_Chugh
2023-03-24 15:21:02 +05:30
parent 73a4c95e42
commit fed610632b
2 changed files with 6 additions and 1 deletions

View File

@@ -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>

View File

@@ -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) => {