Moved all auth schemas into their own files. Updated imports.

This commit is contained in:
2020-12-21 11:18:58 +05:30
parent c6da3b9e38
commit b85e930ace
54 changed files with 289 additions and 473 deletions

View File

@ -50,7 +50,7 @@ export class TableDetailComponent implements OnInit, AfterViewInit {
this.form.setValue({
name: this.item.name,
seats: this.item.seats,
section: this.item.section.id ? this.item.section.id : '',
section: this.item.section ? this.item.section.id : '',
isActive: this.item.isActive,
});
}
@ -104,6 +104,9 @@ export class TableDetailComponent implements OnInit, AfterViewInit {
const formModel = this.form.value;
this.item.name = formModel.name;
this.item.seats = +formModel.seats;
if (this.item.section === null || this.item.section === undefined) {
this.item.section = new Section();
}
this.item.section.id = formModel.section;
this.item.isActive = formModel.isActive;
return this.item;