Revision 60176
Added by Konstantinos Triantafyllou over 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/role-verification/role-verification.component.ts | ||
---|---|---|
61 | 61 |
</div> |
62 | 62 |
<div *ngIf="isMember"> |
63 | 63 |
<div> |
64 |
Welcome! You are now a member of <span class="uk-text-bold">{{name}}</span>! |
|
64 |
Welcome! You are now a member of the OpenAIRE Monitor Dashboard for the <span class="uk-text-bold">{{name}}</span>!
|
|
65 | 65 |
From now on, you will have access to our restricted content. |
66 | 66 |
</div> |
67 | 67 |
<div class="uk-margin-medium-top uk-flex uk-flex-right"> |
... | ... | |
176 | 176 |
this.loading = false; |
177 | 177 |
this.managerModal.cancel(); |
178 | 178 |
this.error = null; |
179 |
this.subs.push(this.userManagementService.getUserInfo(false).subscribe(user => { |
|
180 |
this.user = user; |
|
179 |
this.subs.push(this.userManagementService.updateUserInfo(() => { |
|
181 | 180 |
this.router.navigate(['/admin/' + this.verification.entity]); |
182 | 181 |
})); |
183 | 182 |
}, error => { |
... | ... | |
191 | 190 |
this.subs.push(this.userRegistryService.verify(this.verification.id, this.code.value, "member").subscribe(() => { |
192 | 191 |
this.loading = false; |
193 | 192 |
this.error = null; |
194 |
this.subs.push(this.userManagementService.getUserInfo(false).subscribe(user => { |
|
195 |
this.user = user; |
|
193 |
this.subs.push(this.userManagementService.updateUserInfo(() => { |
|
196 | 194 |
this.isMember = true; |
197 | 195 |
})); |
198 | 196 |
}, error => { |
Also available in: Unified diff
[Library | Trunk]: Fix bug with update userinfo when user has been verified.