From 1e71eafa45b5f171a2938fdf2ddced4f659e9f41 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 1 Jul 2022 11:27:47 +0300 Subject: [PATCH] [Connect Admin | Library | new-theme]: Match menu for communities in admin & dashboard | Added missing property "adminPortalURL". 1. environments/: [Bug fix] Added missing property "adminPortalURL". 2. community-routing.module.ts: Added "user-info" path for each community. 3. app.routing.ts: Set "hasSidebar" to true for "user-info" path. 4. app.component.ts: a. Set "user-info" path in userMenuItems under community if any selected. b. In menuHeader for community set logoUrl and logoSmallUrl to headerLogoUrl (community logo). c. When community is selected, added in menu all items of dashboard too (menu same in admin and dashboard). 5. app.component.html: In added input parameter "communityId". 6. navigationBar.component.ts: On "initialize()" method, clear "showEntity" and "showPage" fields before filling them again and subscribe to communityInformationState if there is a community and adminToolsAPIURL OR if adminToolsPortalType is community (admin & dashboard). 7. community.service.ts: On getCommunityAsync() method, after await call clearSubscriptions(). --- src/app/app.component.html | 5 +- src/app/app.component.ts | 69 ++++++++++++++++++++--- src/app/app.routing.ts | 2 +- src/app/pages/community-routing.module.ts | 6 +- src/environments/environment.beta.ts | 3 +- src/environments/environment.prod.ts | 3 +- src/environments/environment.ts | 3 +- 7 files changed, 77 insertions(+), 14 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 882c55f..5035e75 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -4,8 +4,9 @@