summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-03-13 15:21:55 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2019-03-13 15:22:19 +0530
commit4eaf4746b697f2555fae1f2b09c23d27b146ab86 (patch)
tree03cf5147f6440b760bac57313c56af074fff854f /cds-ui/client/src
parent7fff47d76d227a93926802bdee7ed0191c21b0e6 (diff)
Editor component changes
Added method calls on save and download button clicks Issue-ID: CCSDK-1135 Change-Id: Ib60b7853aaee1742bf69c8b2785f9df42e7a73dd Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/client/src')
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html4
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss4
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts2
3 files changed, 5 insertions, 5 deletions
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html
index bcf2d1549..53bbc6dfa 100644
--- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html
+++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html
@@ -70,7 +70,7 @@ limitations under the License.
color: white;
border-radius: 2em;
padding: 0.5em;
- min-width: 6em;">Save Changes</button>
+ min-width: 6em;" (click)="updateBlueprint()">Save Changes</button>
</div>
<div style="height: 6em;
width: 100%;">
@@ -98,7 +98,7 @@ limitations under the License.
color: white;
border-radius: 2em;
padding: 0.5em;
- min-width: 6em;">Download</button>
+ min-width: 6em;" (click)="download()">Download</button>
</div>
</div>
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss
index f189af656..58f0ab85d 100644
--- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss
+++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss
@@ -26,14 +26,14 @@ limitations under the License.
.fileViewContainer {
width: 20%;
margin: 2px;
- height: 450px !important;
+ height: 490px !important;
overflow-x: scroll;
overflow-y: scroll;
}
.editorConatiner {
width: 80%;
background-color: gainsboro;
- height: 450px !important;
+ height: 490px !important;
}
}
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts
index 5092a698e..37ac522af 100644
--- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts
+++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts
@@ -161,7 +161,7 @@ export class EditorComponent implements OnInit {
}
});
- if (this.selectedFile == this.blueprintName) {
+ if (this.selectedFile == this.blueprintName.trim()) {
this.blueprint = JSON.parse(this.text);
} else {
this.blueprint = this.blueprintdata;