User component: Change get userinfo with updateUserInfo
This commit is contained in:
parent
36e01f50f7
commit
a6015b272a
|
@ -63,14 +63,14 @@ export class OpenaireUserComponent {
|
||||||
if (typeof document !== 'undefined') {
|
if (typeof document !== 'undefined') {
|
||||||
this.server = false;
|
this.server = false;
|
||||||
}
|
}
|
||||||
this.subscriptions.push(this.userManagementsService.getUserInfo(false).subscribe(user => {
|
this.userManagementsService.updateUserInfo(() => {
|
||||||
this.user = user;
|
this.user = this.userManagementsService.user;
|
||||||
this.loggedIn = !!this.user;
|
this.loggedIn = !!this.user;
|
||||||
this.isSubscribed = this.loggedIn && Session.isSubscribedTo('community', this.communityId, this.user);
|
this.isSubscribed = this.loggedIn && Session.isSubscribedTo('community', this.communityId, this.user);
|
||||||
if (this.isSubscribed) {
|
if (this.isSubscribed) {
|
||||||
this.usercomponent.redirect(this.redirectUrl);
|
this.usercomponent.redirect(this.redirectUrl);
|
||||||
}
|
}
|
||||||
}));
|
});
|
||||||
this.properties = properties;
|
this.properties = properties;
|
||||||
this.subscriptions.push(this.route.queryParams.subscribe(
|
this.subscriptions.push(this.route.queryParams.subscribe(
|
||||||
params => {
|
params => {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6d84a2eb5888bc20c01095daac136413f68c7eae
|
Subproject commit 945cee4519a4f5b2c5e53dd5c069d4f038f987e6
|
|
@ -1 +1 @@
|
||||||
Subproject commit eb5739ab8271aa71c8e58998ab88c61878f8788d
|
Subproject commit f085a90973b216b89065848dba864e2d581acc84
|
Loading…
Reference in New Issue