summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts')
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts
index 809f31027..e39ce019c 100644
--- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts
+++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts
@@ -19,7 +19,9 @@ limitations under the License.
============LICENSE_END============================================
*/
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, ViewChild } from '@angular/core';
+
+import { EditorComponent } from './editor/editor.component';
@Component({
selector: 'app-modify-template',
@@ -28,10 +30,13 @@ import { Component, OnInit } from '@angular/core';
})
export class ModifyTemplateComponent implements OnInit {
+ isEnriched: boolean = false;
designerMode: boolean = false;
editorMode: boolean = true;
viewText: string = "Designer View";
+ @ViewChild(EditorComponent) editorComp: EditorComponent;
+
constructor() { }
ngOnInit() {
@@ -53,4 +58,8 @@ export class ModifyTemplateComponent implements OnInit {
}
}
+ downloadCBA() {
+ this.editorComp.download();
+ }
+
}