aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-03-18 17:50:14 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2019-03-18 17:50:25 +0530
commitcc3532626edbeee463d661b5721ca5ddc3f69e44 (patch)
tree3122fd5bd3fd07b0e2c5e84cdeff03b3a7a9dbc9 /cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts
parent093cdee0c8745aee5e93bcb577e03eb45cd1f46e (diff)
Modify Component HTML changes
Moved the deploy, save , download, publish, enrich action buttons to common modify-template component Issue-ID: CCSDK-1098 Change-Id: I52d4cb1864d90eecbb7b1fcdadfb17d8be84b86d Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
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();
+ }
+
}