diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 5bb21a9..399c9ba 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -126,7 +126,7 @@ export class AppComponent implements OnInit { this.subscriptions.push(this.data.subscribe(data => { if(data && data.portal) { this.setProperties(data.portal); - this.configurationService.initCommunityInformation(this.properties, this.properties.adminToolsCommunity); + this.configurationService.initPortal(this.properties, this.properties.adminToolsCommunity); } })); this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => { @@ -172,7 +172,7 @@ export class AppComponent implements OnInit { } else { ConnectHelper.setPortalTypeFromPid(id); } - this.configurationService.initCommunityInformation(this.properties, this.properties.adminToolsCommunity); + this.configurationService.initPortal(this.properties, this.properties.adminToolsCommunity); } public get open() { diff --git a/src/app/pages/stats/stats.component.ts b/src/app/pages/stats/stats.component.ts index 73ed26e..6d81836 100644 --- a/src/app/pages/stats/stats.component.ts +++ b/src/app/pages/stats/stats.component.ts @@ -133,7 +133,7 @@ export class StatsComponent implements OnInit { this._router.navigate(['/user-info'], { queryParams: { "errorCode": LoginErrorCodes.NOT_VALID, "redirectUrl": this._router.url} }); } else { //console.log(`calling ${this.properties.adminToolsAPIURL}/communityFull/${this.communityId}`); - this.configService.communityInformationState.subscribe( + this.configService.portalAsObservable.subscribe( res => { console.debug(res); if(res) {