resource edit component changes 16/91616/1
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 17 Jul 2019 16:46:09 +0000 (22:16 +0530)
committerArundathi Patil <arundpil@in.ibm.com>
Wed, 17 Jul 2019 16:46:22 +0000 (22:16 +0530)
Implemented changes to retain data in UI when the user switches between
designer mode and editor mode

Issue-ID: CCSDK-707
Change-Id: I77ceadf38f3de05783ad58bbcd014e15456eca0d
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-edit.component.html

index 5be2a14..19db82c 100644 (file)
 */-->
 
 
-<button disabled style="opacity: 0.5;" (click) ="changeView()" class="toggle-view-btn">{{viewText}}</button>
+<button (click) ="changeView()" class="toggle-view-btn">{{viewText}}</button>
 <br><br>
-<div *ngIf="designerMode">
+<!-- <div *ngIf="designerMode"> -->
+<div [hidden] = "!designerMode">
    <mat-card class="metadata-card">
         <mat-card-header>
             <mat-card-title>Resource Metadata</mat-card-title>
@@ -45,7 +46,8 @@
     </mat-card>
 </div>
 
-<div *ngIf="editorMode">
+<!-- <div *ngIf="editorMode"> -->
+<div [hidden] = "!editorMode">
        <json-editor  class="jsoneditor" *ngIf="editorMode" [options]="options" [data]="resources" on-change="onChange($event)"></json-editor>
 </div>