🔥 Implementation of VueX, delete all emit events
This commit is contained in:
@@ -31,6 +31,7 @@ import {
|
||||
ApplyCustomVariables,
|
||||
} from '@/utils/ThemeHelper';
|
||||
import Defaults, { localStorageKeys } from '@/utils/defaults';
|
||||
import Keys from '@/utils/StoreMutations';
|
||||
import IconPalette from '@/assets/interface-icons/config-color-palette.svg';
|
||||
|
||||
export default {
|
||||
@@ -94,12 +95,12 @@ export default {
|
||||
},
|
||||
/* Opens the theme color configurator popup */
|
||||
openThemeConfigurator() {
|
||||
this.$emit('modalChanged', true);
|
||||
this.$store.commit(Keys.SET_MODAL_OPEN, true);
|
||||
this.themeConfiguratorOpen = true;
|
||||
},
|
||||
/* Closes the theme color configurator popup */
|
||||
closeThemeConfigurator() {
|
||||
// this.$emit('modalChanged', false);
|
||||
this.$store.commit(Keys.SET_MODAL_OPEN, false);
|
||||
this.themeConfiguratorOpen = false;
|
||||
},
|
||||
/* Updates theme. Checks if the new theme is local or external,
|
||||
|
||||
Reference in New Issue
Block a user