Fixed issues in metadata component 96/78996/1
authorEzhilarasi <ezhrajam@in.ibm.com>
Fri, 22 Feb 2019 09:18:30 +0000 (14:48 +0530)
committerEzhilarasi <ezhrajam@in.ibm.com>
Fri, 22 Feb 2019 09:18:39 +0000 (14:48 +0530)
Change-Id: Ibe0a330b57ed043f31e6a30e424d48a569fd4cc2
Issue-ID: CCSDK-704
Signed-off-by: Ezhilarasi <ezhrajam@in.ibm.com>
cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts
cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.component.html
cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.component.ts

index 033950b..2327a58 100644 (file)
@@ -59,6 +59,7 @@ export class MetadataComponent implements OnInit {
       blueprintdata => {
         var blueprintState: IBlueprintState = { blueprint: blueprintdata.blueprint, isLoadSuccess: blueprintdata.isLoadSuccess, isSaveSuccess: blueprintdata.isSaveSuccess, isUpdateSuccess: blueprintdata.isUpdateSuccess };
         this.metadata = blueprintState.blueprint.metadata;
+        this.blueprint = blueprintState.blueprint;
         let metadatavalues = [];
         for (let key in this.metadata) {
           if (this.metadata.hasOwnProperty(key)) {
index f0a3832..d11b371 100644 (file)
@@ -34,7 +34,7 @@ limitations under the License.
         <ng-template matStepLabel>Browse CBA Template file</ng-template>
         <div class="matStepContent">
             <app-search-template (cbaFile)="fileChange($event)"></app-search-template>
-           <!-- <div>
+            <!-- <div>
                 <button mat-button matStepperNext class="matStepNextBtn">Upload</button>
             </div>-->
         </div>
@@ -46,4 +46,4 @@ limitations under the License.
         </div>
     </mat-step>
 </mat-vertical-stepper>
-<button mat-button matStepperNext class="matStepNextBtn" (click)="saveBlueprintModel()">Next</button>
\ No newline at end of file
+<button mat-button matStepperNext class="matStepNextBtn">Next</button>
\ No newline at end of file
index 431b734..d9591dd 100644 (file)
@@ -57,9 +57,9 @@ export class SelectTemplateComponent implements OnInit {
   upload() {
 
   }
-  saveBlueprintModel(){
-    this.blueprint.toplogyTemplates=this.topologyTemplate;
-    this.blueprint.metadata= this.metaData;
-   // this.store.dispatch(new CreateBlueprint(this.blueprint));
-  }
+  // saveBlueprintModel(){
+  //   this.blueprint.toplogyTemplates=this.topologyTemplate;
+  //   this.blueprint.metadata= this.metaData;
+  //  // this.store.dispatch(new CreateBlueprint(this.blueprint));
+  // }
 }