From a6015b272a751f511c1de3c9fe738546993a52eb Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 13 Sep 2022 10:37:18 +0300 Subject: [PATCH] User component: Change get userinfo with updateUserInfo --- src/app/login/user.component.ts | 6 +++--- src/app/openaireLibrary | 2 +- src/assets/openaire-theme | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/login/user.component.ts b/src/app/login/user.component.ts index 3682f01..626325a 100644 --- a/src/app/login/user.component.ts +++ b/src/app/login/user.component.ts @@ -63,14 +63,14 @@ export class OpenaireUserComponent { if (typeof document !== 'undefined') { this.server = false; } - this.subscriptions.push(this.userManagementsService.getUserInfo(false).subscribe(user => { - this.user = user; + this.userManagementsService.updateUserInfo(() => { + this.user = this.userManagementsService.user; this.loggedIn = !!this.user; this.isSubscribed = this.loggedIn && Session.isSubscribedTo('community', this.communityId, this.user); if (this.isSubscribed) { this.usercomponent.redirect(this.redirectUrl); } - })); + }); this.properties = properties; this.subscriptions.push(this.route.queryParams.subscribe( params => { diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 6d84a2e..945cee4 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 6d84a2eb5888bc20c01095daac136413f68c7eae +Subproject commit 945cee4519a4f5b2c5e53dd5c069d4f038f987e6 diff --git a/src/assets/openaire-theme b/src/assets/openaire-theme index eb5739a..f085a90 160000 --- a/src/assets/openaire-theme +++ b/src/assets/openaire-theme @@ -1 +1 @@ -Subproject commit eb5739ab8271aa71c8e58998ab88c61878f8788d +Subproject commit f085a90973b216b89065848dba864e2d581acc84