Remove Save metadta and Save Sources Button 13/95813/2
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 17 Sep 2019 11:17:29 +0000 (16:47 +0530)
committerArundathi Patil <arundpil@in.ibm.com>
Wed, 18 Sep 2019 07:37:31 +0000 (07:37 +0000)
Implemented code to save changes automatically on user operation

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

index 24bee27..1ed8dd0 100644 (file)
 * ============LICENSE_END=========================================================
 */-->
 
+
 <form [formGroup]="ResourceMetadata" (ngSubmit)="UploadMetadata()">
        <mat-form-field class="form-field">
-      <input matInput placeholder="Name" formControlName="Resource_Name">
+      <input matInput placeholder="Name" formControlName="Resource_Name" (change)="UploadMetadata()">
     </mat-form-field><mat-form-field class="form-field">
-      <input matInput placeholder="Tags" formControlName="_tags">
+      <input matInput placeholder="Tags" formControlName="_tags" (change)="UploadMetadata()">
     </mat-form-field>
     <mat-form-field class="form-field">
-      <mat-select matInput placeholder="Data Type" formControlName="_type">
+      <mat-select matInput placeholder="Data Type" formControlName="_type" (selectionChange)="UploadMetadata()">
        <!-- <mat-option value="string">string</mat-option> -->
         <!-- <mat-option value="list">list</mat-option> -->
-        <mat-option value="string" *ngFor="let item of dataTypeList">{{item.modelName}}</mat-option>
+        <mat-option value="string" *ngFor="let item of dataTypeList" >{{item.modelName}}</mat-option>
       </mat-select>
     </mat-form-field>
     <mat-form-field class="form-field" >
-      <input matInput placeholder="entry_schema" formControlName="entry_schema">
+      <input matInput placeholder="entry_schema" formControlName="entry_schema" (change)="UploadMetadata()">
     </mat-form-field>
     <mat-form-field class="form-field" >
-      <mat-select matInput placeholder="required" formControlName="required">
+      <mat-select matInput placeholder="required" formControlName="required" (selectionChange)="UploadMetadata()">
        <mat-option value="true">true</mat-option>
        <mat-option value="false">false</mat-option>
       </mat-select>
     </mat-form-field>
     <mat-form-field class="form-field" >
-      <textarea matInput placeholder="Description" formControlName="_description"></textarea>
+      <textarea matInput placeholder="Description" formControlName="_description" (change)="UploadMetadata()"></textarea>
     </mat-form-field>
-    <br>
-    <div>
-       <button mat-button class="matStepNextBtn" type="submit">Save Metadata</button>
-    </div>  
+    <br> 
 </form>
\ No newline at end of file
index a5f367d..5210ac0 100644 (file)
@@ -56,7 +56,4 @@
       <div class="options-box" *ngFor="let item of option | search :searchText" cdkDrag>{{item.name}}</div>
     </div>
    </div>
-   <div> 
-       <button mat-button class="matStepNextBtn" (click)="UploadSourcesData()">Save Sources Data</button>
-   </div>
 </div>
\ No newline at end of file