aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui
diff options
context:
space:
mode:
authorBrinda Santh Muthuramalingam <brindasanth@in.ibm.com>2019-09-18 13:47:50 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-18 13:47:50 +0000
commit4213158c24fe2bd28bad458e05fccf127a1f0135 (patch)
tree21ae8a04b71d49b852912c3ea0b00788e9b67894 /cds-ui
parent24f39fda67bec6f622c25effcd2a1626efae772a (diff)
parentaa6a94a59e8dc667fb4e9bfc3695e53af86553de (diff)
Merge "Remove Save metadta and Save Sources Button"
Diffstat (limited to 'cds-ui')
-rw-r--r--cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-metadata/resource-metadata.component.html20
-rw-r--r--cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/sources-template/sources-template.component.html3
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