[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:
parent
901855daa9
commit
27f644aad1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue