[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.
This commit is contained in:
Konstantina Galouni 2023-07-24 19:56:51 +03:00
parent 901855daa9
commit 27f644aad1
1 changed files with 2 additions and 1 deletions

View File

@ -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) {