Revision 60883
Added by Argiro Kokogiannaki about 3 years ago
CustomizationOptions.ts | ||
---|---|---|
83 | 83 |
}; |
84 | 84 |
} |
85 | 85 |
public static checkForObsoleteVersion(current:CustomizationOptions, communityId:string){ |
86 |
let updated = new CustomizationOptions(current.identity.mainColor,current.identity.secondaryColor); |
|
87 | 86 |
let defaultCO = new CustomizationOptions(CustomizationOptions.getIdentity(communityId).mainColor,CustomizationOptions.getIdentity(communityId).secondaryColor); |
87 |
let updated = Object.assign({}, defaultCO); |
|
88 |
if(current.identity && current.identity.mainColor && current.identity.secondaryColor ) { |
|
89 |
updated = new CustomizationOptions(current.identity.mainColor, current.identity.secondaryColor); |
|
90 |
} |
|
88 | 91 |
if(!current.backgrounds){ |
89 | 92 |
current.backgrounds = Object.assign({}, updated.backgrounds); |
90 | 93 |
} |
Also available in: Unified diff
[Library|Trunk]
- Result landing: allow get result from input instead of the service.
- FetchResearchResults class: getResultsForCommunity add check for current year when sorting on date
- Customization checkForObsoleteVersion: add extra check