mirror of
https://github.com/MikroWizard/mikrofront.git
synced 2025-12-09 19:49:30 +00:00
code cleanup and some small fixes
This commit is contained in:
parent
c656a1be58
commit
b4c9bc4557
5 changed files with 13 additions and 16 deletions
|
|
@ -401,7 +401,10 @@ export class DevicesComponent implements OnInit, OnDestroy {
|
|||
get_groups() {
|
||||
var _self = this;
|
||||
this.data_provider.get_devgroup_list().then((res) => {
|
||||
_self.groups = res;
|
||||
if( "status" in res && res.status == 'failed' )
|
||||
_self.groups=false
|
||||
else
|
||||
_self.groups = res.data;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue