update Customization Options

remove unused property portalBuildTime
This commit is contained in:
argirok 2022-08-08 13:16:13 +03:00
parent 7069fe6151
commit 123766d46e
2 changed files with 37 additions and 34 deletions

View File

@ -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;

View File

@ -140,6 +140,5 @@ export interface EnvProperties {
myOrcidLinksPage?: string;
footerGrantText?: string;
egiNotebookLink?: string;
portalBuildTime?;
connectPortalUrl?;
}