From 27f644aad1f4568a03bafbbd3d1640568a725957 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Mon, 24 Jul 2023 19:56:51 +0300 Subject: [PATCH] [Aggregator | develop]: In search bars, set in placeholder the portal name according to the configuration name. 1. home.component: Get portalName by config.portalAsObservable>name and set placeholder to "Search "+portalName. 2. portal.ts: Added parameter "name: string" in method "getMockCommunityInfo()" and set communityInfo.name = name; 3. aggregators.ts: In method "getCommunityInfoByMenuId()", added "name" parameter in Portal.getMockCommunityInfo() | Updated titles in PortalAggregators>AggregatorInfo. --- utils/entities/adminTool/portal.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/entities/adminTool/portal.ts b/utils/entities/adminTool/portal.ts index 88ce66ce..7ddb3b7f 100644 --- a/utils/entities/adminTool/portal.ts +++ b/utils/entities/adminTool/portal.ts @@ -186,9 +186,10 @@ export class Portal { }; }; - public static getMockCommunityInfo(pid: string, disabledEntities:string[],disabledPages:string[]): any { + public static getMockCommunityInfo(pid: string, name:string, disabledEntities:string[],disabledPages:string[]): any { let communityInfo = Object.assign({}, Portal.getmockPortalInfo()); communityInfo.pid = pid; + communityInfo.name = name; for(let disabledPage of disabledPages) { for (var i = 0; i < communityInfo.pages.length; i++) { if (communityInfo.pages[i].route == disabledPage) {