Editor component changes 99/82099/1
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 13 Mar 2019 09:51:55 +0000 (15:21 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Wed, 13 Mar 2019 09:52:19 +0000 (15:22 +0530)
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>
cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html
cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss
cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts

index bcf2d15..53bbc6d 100644 (file)
@@ -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>
index f189af6..58f0ab8 100644 (file)
@@ -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;
     }
 }
 
index 5092a69..37ac522 100644 (file)
@@ -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;