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;
|
this.loginUrl = this.properties.loginUrl;
|
||||||
if (typeof document !== 'undefined') {
|
if (typeof document !== 'undefined') {
|
||||||
this.server = false;
|
this.server = false;
|
||||||
this.userManagementsService.getUserInfo().subscribe( user => {
|
this.userManagementsService.updateUserInfo( () => {
|
||||||
this.user = user;
|
this.user = this.userManagementsService.user;
|
||||||
this.loggedIn = !!this.user;
|
this.loggedIn = !!this.user;
|
||||||
this.errorMessage = "";
|
this.errorMessage = "";
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
Loading…
Reference in New Issue