Change style of private community when user is not logged in.

This commit is contained in:
Konstantinos Triantafyllou 2023-09-05 17:46:42 +03:00
parent c79a65c0e2
commit 8da7eafe81
1 changed files with 2 additions and 2 deletions

View File

@ -315,7 +315,7 @@ export class AppComponent implements OnInit, OnDestroy {
} else {
this.properties.adminToolsPortalType = "connect";
if (this.document) {
this.initLayout('connect');
this.initLayout(this.communityId?this.communityId:'connect');
}
}
this.configurationService.initPortal(this.properties, (communityId) ? communityId : this.properties.adminToolsPortalType);
@ -455,7 +455,7 @@ export class AppComponent implements OnInit, OnDestroy {
}
this.showMenu = true;
} else {
this.communityId = null;
this.communityId = (this.community && ConnectHelper.isPrivate(this.community, this.user))?this.community.communityId:null;
this.configurationService.initPortal(this.properties, "connect");
this.buildConnectMenu(true);
if (this.community && this.community.status == "manager") {