🐛 Fixes theme not updated (#774)

This commit is contained in:
Alicia Sykes
2022-06-30 18:22:26 +01:00
parent 7e861b71ae
commit a2442c7349
5 changed files with 11 additions and 25 deletions

View File

@@ -128,6 +128,7 @@ export default {
*/
themeChanged() {
this.$store.commit(Keys.SET_THEME, this.selectedTheme);
this.updateTheme(this.selectedTheme);
},
/* Returns the initial theme */
getInitialTheme() {
@@ -164,7 +165,7 @@ export default {
this.themeHelper.theme = newTheme;
}
this.ApplyCustomVariables(newTheme);
localStorage.setItem(localStorageKeys.THEME, newTheme);
// localStorage.setItem(localStorageKeys.THEME, newTheme);
},
/* Removes any applied themes */
resetToDefault() {