code cleanup and some small fixes

This commit is contained in:
sepehr 2024-07-08 20:19:53 +03:30
parent c656a1be58
commit b4c9bc4557
5 changed files with 13 additions and 16 deletions

View file

@ -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;
});
}