[Library | Trunk]: Subscribers fix detection error on user variable

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60343 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2021-02-02 16:48:48 +00:00
parent a5a57976dd
commit 35abee9027
1 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,13 @@
import {Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewChild} from '@angular/core';
import {
ChangeDetectorRef,
Component,
Input,
OnChanges,
OnDestroy,
OnInit,
SimpleChanges,
ViewChild
} from '@angular/core';
import {Subscription} from 'rxjs/Rx';
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
import {AlertModal} from "../../../utils/modal/alert";
@ -50,6 +59,7 @@ export class SubscribersComponent implements OnInit, OnDestroy, OnChanges {
constructor(private userRegistryService: UserRegistryService,
private userManagementService: UserManagementService,
private router: Router,
private cdr: ChangeDetectorRef,
private fb: FormBuilder) {
}
@ -63,6 +73,7 @@ export class SubscribersComponent implements OnInit, OnDestroy, OnChanges {
this.updateList();
this.userManagementService.getUserInfo().subscribe(user => {
this.user = user;
this.cdr.detectChanges();
});
}