From 8da7eafe81bf129407c205d115bacfe0f0380f5a Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Tue, 5 Sep 2023 17:46:42 +0300 Subject: [PATCH] Change style of private community when user is not logged in. --- src/app/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ef485d0..3ccbbd8 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -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") {