User component: Update user-info in init.
This commit is contained in:
parent
ed19051fc0
commit
2b4835bd0d
|
@ -43,8 +43,8 @@ export class UserComponent {
|
|||
this.loginUrl = this.properties.loginUrl;
|
||||
if (typeof document !== 'undefined') {
|
||||
this.server = false;
|
||||
this.userManagementsService.getUserInfo().subscribe( user => {
|
||||
this.user = user;
|
||||
this.userManagementsService.updateUserInfo( () => {
|
||||
this.user = this.userManagementsService.user;
|
||||
this.loggedIn = !!this.user;
|
||||
this.errorMessage = "";
|
||||
this.loading = true;
|
||||
|
|
Loading…
Reference in New Issue