diff options
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.ts | 9 |
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(''); |