[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
This commit is contained in:
k.triantafyllou 2020-12-22 15:42:43 +00:00
parent a20488b220
commit e48610e5d5
1 changed files with 3 additions and 5 deletions

View File

@ -61,7 +61,7 @@ import {AlertModal} from "../utils/modal/alert";
</div> </div>
<div *ngIf="isMember"> <div *ngIf="isMember">
<div> <div>
Welcome! You are now a member of <span class="uk-text-bold">{{name}}</span>! Welcome! You are now a member of the OpenAIRE Monitor Dashboard for the <span class="uk-text-bold">{{name}}</span>!
From now on, you will have access to our restricted content. From now on, you will have access to our restricted content.
</div> </div>
<div class="uk-margin-medium-top uk-flex uk-flex-right"> <div class="uk-margin-medium-top uk-flex uk-flex-right">
@ -176,8 +176,7 @@ export class RoleVerificationComponent implements OnInit, OnDestroy {
this.loading = false; this.loading = false;
this.managerModal.cancel(); this.managerModal.cancel();
this.error = null; this.error = null;
this.subs.push(this.userManagementService.getUserInfo(false).subscribe(user => { this.subs.push(this.userManagementService.updateUserInfo(() => {
this.user = user;
this.router.navigate(['/admin/' + this.verification.entity]); this.router.navigate(['/admin/' + this.verification.entity]);
})); }));
}, error => { }, 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.subs.push(this.userRegistryService.verify(this.verification.id, this.code.value, "member").subscribe(() => {
this.loading = false; this.loading = false;
this.error = null; this.error = null;
this.subs.push(this.userManagementService.getUserInfo(false).subscribe(user => { this.subs.push(this.userManagementService.updateUserInfo(() => {
this.user = user;
this.isMember = true; this.isMember = true;
})); }));
}, error => { }, error => {