Fix manage communities load stuck.
This commit is contained in:
parent
e56a6effd8
commit
051d0101bb
|
@ -130,12 +130,15 @@ export class AppComponent implements OnInit {
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => {
|
||||||
this.user = user;
|
if (user) {
|
||||||
if (this.user) {
|
this.user = user;
|
||||||
localStorage.setItem('user_id', this.user.id);
|
localStorage.setItem('user_id', this.user.id);
|
||||||
localStorage.setItem('mining_backend_address', this.properties.miningBackendURL);
|
localStorage.setItem('mining_backend_address', this.properties.miningBackendURL);
|
||||||
localStorage.setItem('isCommunityManager', Session.isCommunityCurator(this.user) + '');
|
localStorage.setItem('isCommunityManager', Session.isCommunityCurator(this.user) + '');
|
||||||
this.buildMenu();
|
this.buildMenu();
|
||||||
|
} else if(this.user) {
|
||||||
|
this.user = user;
|
||||||
|
this.buildMenu();
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 561c15b8cd52f45ab6d3aa1d125ef69478a81038
|
Subproject commit fa919431d3be63fb4045d47083b3ba7cd6414e03
|
|
@ -172,6 +172,8 @@ export class ManageCommunitiesComponent implements OnInit, OnDestroy {
|
||||||
})
|
})
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}));
|
}));
|
||||||
|
} else {
|
||||||
|
this.loading = false;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue