aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts
diff options
context:
space:
mode:
authorAhmedeldeeb50 <ahmed.eldeeb.ext@orange.com>2020-12-15 11:17:29 +0200
committerAhmedeldeeb50 <ahmed.eldeeb.ext@orange.com>2020-12-15 16:35:04 +0200
commit398ae83b6b18fdff202dd7f64ee57d8e3d700937 (patch)
treed83d36db7fa090a39968b6f5ff4fd16c4f597e95 /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts
parent981573b5b00cdb47cd9f2bbd002735ccc0c362fc (diff)
Stop clearing angular store after deploy to avoid script problem.
Issue-ID: CCSDK-3042 Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com> Change-Id: I5eb109c6f27600be63714e93a3748f4d5ecfe37f
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts
index d36b16f16..f46004b0b 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts
@@ -99,7 +99,7 @@ export class FunctionsAttributeComponent implements OnInit, OnDestroy {
onInitMapping() {
// selectedTemplates , templateAndMappingMap
- this.selectedTemplates = new Map<string, TemplateAndMapping>();
+ // this.selectedTemplates = new Map<string, TemplateAndMapping>();
try {
const functionMap = this.designerState.template.node_templates[this.functionName].artifacts;
console.log(this.templateAndMappingMap);
@@ -117,6 +117,10 @@ export class FunctionsAttributeComponent implements OnInit, OnDestroy {
} catch (e) { }
}
+ init() {
+ this.selectedTemplates = new Map(this.finalTemplates);
+ }
+
toNodeProcess(nodeTemplate, functionName) {
console.log(nodeTemplate);
this.currentFuncion['instance-name'] = functionName;
@@ -156,7 +160,7 @@ export class FunctionsAttributeComponent implements OnInit, OnDestroy {
}
addTemplates() {
- this.finalTemplates = this.selectedTemplates;
+ this.finalTemplates = new Map(this.selectedTemplates);
}
cancel() {
this.selectedTemplates = new Map<string, TemplateAndMapping>();