summaryrefslogtreecommitdiffstats
path: root/public/src/app/rule-engine/action-list/action-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'public/src/app/rule-engine/action-list/action-list.component.ts')
-rw-r--r--public/src/app/rule-engine/action-list/action-list.component.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/public/src/app/rule-engine/action-list/action-list.component.ts b/public/src/app/rule-engine/action-list/action-list.component.ts
index f8fd6dd..466b6a9 100644
--- a/public/src/app/rule-engine/action-list/action-list.component.ts
+++ b/public/src/app/rule-engine/action-list/action-list.component.ts
@@ -407,6 +407,7 @@ export class ActionListComponent implements AfterViewInit {
// clear temp copy rule.
this.clearCopyRuleFromList();
// then update the rule list and sync with server
+ this.updateTaregtListExisiting();
this.store.updateRuleInList(response);
this._ruleApi.callUpdateVersionLock();
this.store.loader = false;
@@ -424,6 +425,25 @@ export class ActionListComponent implements AfterViewInit {
}
}
+ updateTaregtListExisiting() {
+ this._ruleApi
+ .generateMappingRulesFileName(
+ this.store.ruleListExistParams.nodeName,
+ this.store.ruleListExistParams.nodeId,
+ this.store.ruleListExistParams.vfcmtUuid
+ )
+ .subscribe(response => {
+ console.log('generateMappingRulesFileName response: ', response);
+ this.store.advancedSetting.forEach(element => {
+ if (response.includes(element.name)) {
+ element.isExist = true;
+ } else {
+ element.isExist = false;
+ }
+ });
+ });
+ }
+
private clearCopyRuleFromList() {
this.store.ruleList = this.store.ruleList.filter(item => item.uid !== '');
}
@@ -452,6 +472,7 @@ export class ActionListComponent implements AfterViewInit {
// clear temp copy rule.
this.clearCopyRuleFromList();
// then update the rule list and sync with server
+ this.updateTaregtListExisiting();
this.store.updateRuleInList(response);
this._ruleApi.callUpdateVersionLock();
this.uid = response.uid;