update Customization Options
remove unused property portalBuildTime
This commit is contained in:
parent
7069fe6151
commit
123766d46e
|
@ -156,6 +156,9 @@ export class CustomizationOptions {
|
|||
public static checkForObsoleteVersion(current:CustomizationOptions, communityId:string){
|
||||
let defaultCO = new CustomizationOptions(CustomizationOptions.getIdentity(communityId).mainColor,CustomizationOptions.getIdentity(communityId).secondaryColor);
|
||||
let updated = Object.assign({}, defaultCO);
|
||||
if(!current){
|
||||
current = Object.assign({}, defaultCO);
|
||||
}else {
|
||||
if (current.identity && current.identity.mainColor && current.identity.secondaryColor) {
|
||||
updated = new CustomizationOptions(current.identity.mainColor, current.identity.secondaryColor);
|
||||
}
|
||||
|
@ -190,6 +193,7 @@ export class CustomizationOptions {
|
|||
current.identityIsCustom = (JSON.stringify(current.backgrounds) !=
|
||||
JSON.stringify(updated.backgrounds) || JSON.stringify(current.buttons) != JSON.stringify(updated.buttons));
|
||||
}
|
||||
}
|
||||
return current;
|
||||
|
||||
|
||||
|
|
|
@ -140,6 +140,5 @@ export interface EnvProperties {
|
|||
myOrcidLinksPage?: string;
|
||||
footerGrantText?: string;
|
||||
egiNotebookLink?: string;
|
||||
portalBuildTime?;
|
||||
connectPortalUrl?;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue