diff --git a/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts b/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts index 75013234..35690c2a 100644 --- a/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts +++ b/claims/claim-utils/entityFormatter/projectTitleFormatter.component.ts @@ -11,15 +11,17 @@ import {properties} from "../../../../../environments/environment";
- {{(project['acronym'] ? ('[' + project['acronym'] + '] ') : '')}}{{project['name']}} + {{(project['acronym'] ? ('[' + project['acronym'] + '] ') : '')}}{{project['name']}} + {{project['funderName']}} - {{(project['acronym'] ? ('[' + project['acronym'] + '] ') : '')}}{{project['name']}} + {{(project['acronym'] ? ('[' + project['acronym'] + '] ') : '')}}{{project['name']}} + {{project['funderName']}}
- + ` diff --git a/connect/community/CustomizationOptions.ts b/connect/community/CustomizationOptions.ts index 78a8e890..5b552055 100644 --- a/connect/community/CustomizationOptions.ts +++ b/connect/community/CustomizationOptions.ts @@ -91,6 +91,7 @@ export class CustomizationOptions { identity: { mainColor: string; secondaryColor: string; + customCss: string; }; identityIsCustom: boolean; backgroundsIsCustom: boolean; @@ -114,11 +115,12 @@ export class CustomizationOptions { darkBackground: ButtonsCustomization; lightBackground: ButtonsCustomization; }; - + constructor(mainColor: string = null, secondaryColor: string = null) { this.identity = { mainColor: mainColor ? mainColor : CustomizationOptions.getIdentity().mainColor, secondaryColor: secondaryColor ? secondaryColor : CustomizationOptions.getIdentity().secondaryColor, + customCss: "" }; this.identityIsCustom = false; this.backgroundsIsCustom = false; @@ -185,6 +187,9 @@ export class CustomizationOptions { if (current.identity && current.identity.mainColor && current.identity.secondaryColor) { updated = new CustomizationOptions(current.identity.mainColor, current.identity.secondaryColor); } + if(current.identity && !current.identity.customCss){ + current.identity.customCss = defaultCO.identity.customCss; + } if (!current.backgrounds) { current.backgrounds = Object.assign({}, updated.backgrounds); } diff --git a/connect/curators/curator.service.ts b/connect/curators/curator.service.ts index cf28ceff..52516530 100644 --- a/connect/curators/curator.service.ts +++ b/connect/curators/curator.service.ts @@ -12,7 +12,7 @@ export class CuratorService { } public getCurators(properties: EnvProperties, communityId: string): Observable {{project['funderName']}}