mirror of https://github.com/Lissy93/dashy.git
🔀 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:
commit
493540b949
|
@ -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 || [];
|
||||||
|
|
Loading…
Reference in New Issue