From 398ae83b6b18fdff202dd7f64ee57d8e3d700937 Mon Sep 17 00:00:00 2001 From: Ahmedeldeeb50 Date: Tue, 15 Dec 2020 11:17:29 +0200 Subject: Stop clearing angular store after deploy to avoid script problem. Issue-ID: CCSDK-3042 Signed-off-by: Ahmedeldeeb50 Change-Id: I5eb109c6f27600be63714e93a3748f4d5ecfe37f --- .../functions-attribute/functions-attribute.component.css | 2 +- .../functions-attribute/functions-attribute.component.html | 13 +++++++------ .../functions-attribute/functions-attribute.component.ts | 8 ++++++-- 3 files changed, 14 insertions(+), 9 deletions(-) (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.css b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.css index 10ed56b55..1159d8f80 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.css +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.css @@ -1,3 +1,3 @@ .createAttributeTabs .active { - background: #eaeaea; + background: #C3CDDB; } \ No newline at end of file diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html index ea17f888d..ded7e5f23 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.html @@ -73,9 +73,10 @@ Template
- +
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(); + // this.selectedTemplates = new Map(); 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(); -- cgit 1.2.3-korg