summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-metadata/resource-metadata.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-metadata/resource-metadata.component.html')
-rw-r--r--cds-ui/client/src/app/feature-modules/resource-definition/resource-edit/resource-metadata/resource-metadata.component.html20
1 files changed, 9 insertions, 11 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