🔀 Merge pull request #619 from emiran-orange/cssthemes_in_dropdown

[FIX] Make user-defined themes appear in drop-down list
This commit is contained in:
Alicia Sykes 2022-04-29 14:19:54 +01:00 committed by GitHub
commit 493540b949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ export default {
themeNames: function themeNames() { themeNames: function themeNames() {
const externalThemeNames = Object.keys(this.externalThemes); const externalThemeNames = Object.keys(this.externalThemes);
const specialThemes = ['custom']; const specialThemes = ['custom'];
return [...externalThemeNames, ...Defaults.builtInThemes, ...specialThemes]; return [...this.extraThemeNames, ...externalThemeNames,
...Defaults.builtInThemes, ...specialThemes];
}, },
extraThemeNames() { extraThemeNames() {
const userThemes = this.appConfig.cssThemes || []; const userThemes = this.appConfig.cssThemes || [];