[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:
parent
a20488b220
commit
e48610e5d5
|
@ -61,7 +61,7 @@ import {AlertModal} from "../utils/modal/alert";
|
|||
</div>
|
||||
<div *ngIf="isMember">
|
||||
<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.
|
||||
</div>
|
||||
<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.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 => {
|
||||
|
|
Loading…
Reference in New Issue