diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2019-09-17 16:47:29 +0530 |
---|---|---|
committer | Arundathi Patil <arundpil@in.ibm.com> | 2019-09-18 07:37:31 +0000 |
commit | aa6a94a59e8dc667fb4e9bfc3695e53af86553de (patch) | |
tree | e2922213a29d704e53aa8c127d1d987be2065c1d /cds-ui/client/src/app/feature-modules | |
parent | 44f56d241be4de6edf6b3ccda4e44426241581ed (diff) |
Remove Save metadta and Save Sources Button
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>
Diffstat (limited to 'cds-ui/client/src/app/feature-modules')
2 files changed, 9 insertions, 14 deletions
diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-metadata/resource-metadata.component.html b/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-metadata/resource-metadata.component.html index 24bee2720..1ed8dd097 100644 --- a/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-metadata/resource-metadata.component.html +++ b/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-metadata/resource-metadata.component.html @@ -20,33 +20,31 @@ * ============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 diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/sources-template/sources-template.component.html b/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/sources-template/sources-template.component.html index a5f367de0..5210ac057 100644 --- a/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/sources-template/sources-template.component.html +++ b/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/sources-template/sources-template.component.html @@ -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 |