fix
This commit is contained in:
@@ -2,5 +2,5 @@ export interface ItemCategoryModel {
|
||||
id?: string,
|
||||
name?: string,
|
||||
allowDelete: boolean,
|
||||
isInternal: boolean,
|
||||
internal: boolean,
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="text-inside">
|
||||
<mat-checkbox class="example-margin" formControlName="isInternal">Is internal motion</mat-checkbox>
|
||||
<mat-checkbox class="example-margin" formControlName="internal">Is internal motion</mat-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -39,11 +39,10 @@ export class SettingsItemCategoryEditComponent {
|
||||
this.category.name,
|
||||
[Validators.required],
|
||||
],
|
||||
isInternal: [
|
||||
this.category.isInternal,
|
||||
internal: [
|
||||
this.category?.internal ?? false,
|
||||
],
|
||||
});
|
||||
console.log(this.editForm.value);
|
||||
}
|
||||
|
||||
closeDialog(): void {
|
||||
|
||||
@@ -59,6 +59,8 @@ export class SettingsItemEditComponent {
|
||||
}
|
||||
|
||||
onSubmitClick() {
|
||||
console.log(this.item);
|
||||
console.log(this.editForm.value);
|
||||
if (this.editForm.valid) {
|
||||
this.errorMessage = undefined;
|
||||
this.httpClient
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<tr *ngFor="let item of categories">
|
||||
<td>{{item.name}}</td>
|
||||
<td>
|
||||
<mat-icon *ngIf="item.isInternal">done</mat-icon>
|
||||
<mat-icon *ngIf="item.internal">done</mat-icon>
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn-space" (click)="edit(item)" mat-raised-button color="primary">
|
||||
|
||||
Reference in New Issue
Block a user