diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 5371e81..bcd2af1 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -71,9 +71,10 @@ export class AppComponent implements OnInit, OnDestroy { } } else { this.stakeholderService.setStakeholder(null); + this.layoutService.setOpen(true); } })); - this.subscriptions.push(this.userManagementService.getUserInfo(this.properties.userInfoUrl).subscribe(user => { + this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => { this.user = user; this.buildMenu(); }, error => { diff --git a/src/app/monitor/monitor.component.ts b/src/app/monitor/monitor.component.ts index 8558b8b..ef63787 100644 --- a/src/app/monitor/monitor.component.ts +++ b/src/app/monitor/monitor.component.ts @@ -141,7 +141,7 @@ export class MonitorComponent implements OnInit, OnDestroy, IDeactivateComponent } else { this.setView(params); } - this.subscriptions.push(this.userManagementService.getUserInfo(this.properties.userInfoUrl).subscribe(user => { + this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => { this.user = user; this.buildMenu(); }, error => { @@ -208,7 +208,7 @@ export class MonitorComponent implements OnInit, OnDestroy, IDeactivateComponent } else { this.setView(params); } - this.subscriptions.push(this.userManagementService.getUserInfo(this.properties.userInfoUrl).subscribe(user => { + this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => { this.user = user; this.buildMenu(); }, error => { diff --git a/src/app/utils/subscribe/subscribe.component.ts b/src/app/utils/subscribe/subscribe.component.ts index aa10a26..b41ec31 100644 --- a/src/app/utils/subscribe/subscribe.component.ts +++ b/src/app/utils/subscribe/subscribe.component.ts @@ -69,7 +69,7 @@ export class SubscribeComponent { this.route.data .subscribe((data: { envSpecific: EnvProperties }) => { this.properties = data.envSpecific; - this.userManagementService.getUserInfo(this.properties.userInfoUrl).subscribe( user => { + this.userManagementService.getUserInfo().subscribe(user => { this.user = user; if (!this.showNumbers) { let email = (this.user)?this.user.email:null;