summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-02-20 19:23:35 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-20 19:23:35 +0000
commitfdd6331215678fd5c84e1514c48946825530d101 (patch)
tree49e6c6ea3043510947ef7e82378721cce61063df /cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts
parent87ab634335deaa3901c5c8fc548aa89b08880659 (diff)
parentf93a1f6c6daef09948cc7c0cd2cc4ef030b68957 (diff)
Merge "Editor component"
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.ts20
1 files changed, 20 insertions, 0 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 a02bb97fa..1efdefce6 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
@@ -28,9 +28,29 @@ import { Component, OnInit } from '@angular/core';
})
export class ModifyTemplateComponent implements OnInit {
+ designerMode: boolean = true;
+ editorMode: boolean = false;
+ viewText: string = "Editor View";
+
constructor() { }
ngOnInit() {
}
+ viewNodeDetails(nodeTemplate) {
+ console.log(nodeTemplate);
+ }
+
+ changeView() {
+ if(this.viewText == 'Editor View') {
+ this.editorMode = true;
+ this.designerMode = false;
+ this.viewText = 'Designer View'
+ } else {
+ this.editorMode = false;
+ this.designerMode = true;
+ this.viewText = 'Editor View'
+ }
+ }
+
}