From e48610e5d5eca910a77653af6ff38841e569cc21 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 22 Dec 2020 15:42:43 +0000 Subject: [PATCH] [Library | Trunk]: Fix bug with update userinfo when user has been verified. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60176 d315682c-612b-4755-9ff5-7f18f6832af3 --- role-verification/role-verification.component.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/role-verification/role-verification.component.ts b/role-verification/role-verification.component.ts index 554c169c..7351e465 100644 --- a/role-verification/role-verification.component.ts +++ b/role-verification/role-verification.component.ts @@ -61,7 +61,7 @@ import {AlertModal} from "../utils/modal/alert";
- Welcome! You are now a member of {{name}}! + Welcome! You are now a member of the OpenAIRE Monitor Dashboard for the {{name}}! From now on, you will have access to our restricted content.
@@ -176,8 +176,7 @@ export class RoleVerificationComponent implements OnInit, OnDestroy { this.loading = false; this.managerModal.cancel(); this.error = null; - this.subs.push(this.userManagementService.getUserInfo(false).subscribe(user => { - this.user = user; + this.subs.push(this.userManagementService.updateUserInfo(() => { this.router.navigate(['/admin/' + this.verification.entity]); })); }, error => { @@ -191,8 +190,7 @@ export class RoleVerificationComponent implements OnInit, OnDestroy { this.subs.push(this.userRegistryService.verify(this.verification.id, this.code.value, "member").subscribe(() => { this.loading = false; this.error = null; - this.subs.push(this.userManagementService.getUserInfo(false).subscribe(user => { - this.user = user; + this.subs.push(this.userManagementService.updateUserInfo(() => { this.isMember = true; })); }, error => {