mirror of
https://github.com/MikroWizard/mikrofront.git
synced 2025-08-31 15:19:31 +02:00
Fix Errors caused typo and get information from API
This commit is contained in:
parent
9910514714
commit
5e1dc0931c
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ export class DefaultHeaderComponent extends HeaderComponent {
|
|||
) {
|
||||
super();
|
||||
var _self = this;
|
||||
var session_info: string = localStorage.getItem('current_user') || "[]]";
|
||||
var session_info: string = localStorage.getItem('current_user') || "[]";
|
||||
this.current_user = JSON.parse(session_info);
|
||||
}
|
||||
|
||||
|
|
|
@ -402,9 +402,9 @@ export class DevicesComponent implements OnInit, OnDestroy {
|
|||
var _self = this;
|
||||
this.data_provider.get_devgroup_list().then((res) => {
|
||||
if( "status" in res && res.status == 'failed' )
|
||||
_self.groups=false
|
||||
_self.groups = false
|
||||
else
|
||||
_self.groups = res.data;
|
||||
_self.groups = res;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue