Devices have replaced Clients for authentication as well as location using sections.

Printing of reports done.
Main section is now a fixture

User and Devices list gives last login details.
This commit is contained in:
2020-10-27 16:59:24 +05:30
parent cbc2f29e29
commit f8683cf080
32 changed files with 335 additions and 291 deletions

View File

@ -35,6 +35,7 @@ export class DeviceDetailComponent implements OnInit, AfterViewInit {
this.form = this.fb.group({
name: '',
section: '',
enabled: '',
});
}
@ -50,6 +51,7 @@ export class DeviceDetailComponent implements OnInit, AfterViewInit {
this.form.setValue({
name: this.item.name || '',
section: this.item.section.id ? this.item.section.id : '',
enabled: this.item.enabled,
});
}
@ -100,6 +102,7 @@ export class DeviceDetailComponent implements OnInit, AfterViewInit {
const formModel = this.form.value;
this.item.name = formModel.name;
this.item.section.id = formModel.section;
this.item.enabled = formModel.enabled;
return this.item;
}
}