summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts
diff options
context:
space:
mode:
authorKAPIL SINGAL <ks220y@att.com>2020-12-14 19:07:18 +0000
committerGerrit Code Review <gerrit@onap.org>2020-12-14 19:07:18 +0000
commit9de0f8373c2adeded063050071f47bc6a89eff22 (patch)
tree399f4ac92a8edffcc926e45d7fa6d903775fa95b /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/functions-attribute/functions-attribute.component.ts
parent611090f7e90d02c3d3712fc2fe3e64198c19b10f (diff)
parent0aa4ea86a06dba452360b0806b820454133cb82a (diff)
Merge "1- Fix add template & cancel button in templates modal"
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.ts9
1 files changed, 8 insertions, 1 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 6ebf536b5..d36b16f16 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
@@ -22,6 +22,7 @@ export class FunctionsAttributeComponent implements OnInit, OnDestroy {
cbaPackage: CBAPackage;
templateAndMappingMap = new Map<string, TemplateAndMapping>();
selectedTemplates = new Map<string, TemplateAndMapping>();
+ finalTemplates = new Map<string, TemplateAndMapping>();
fileToDelete: string;
requiredInputs = new Map<string, {}>();
requiredOutputs = new Map<string, {}>();
@@ -108,6 +109,7 @@ export class FunctionsAttributeComponent implements OnInit, OnDestroy {
console.log(filename);
if (this.templateAndMappingMap.has(filename)) {
this.selectedTemplates.set(filename, this.templateAndMappingMap.get(filename));
+ this.finalTemplates.set(filename, this.templateAndMappingMap.get(filename));
}
});
@@ -153,7 +155,12 @@ export class FunctionsAttributeComponent implements OnInit, OnDestroy {
this.ngUnsubscribe.complete();
}
- addTemplates() { }
+ addTemplates() {
+ this.finalTemplates = this.selectedTemplates;
+ }
+ cancel() {
+ this.selectedTemplates = new Map<string, TemplateAndMapping>();
+ }
saveFunctionData() {
this.nodeTemplates = new NodeTemplate('');