refactor: update theme components

This commit is contained in:
Łukasz Holeczek
2021-08-27 00:06:27 +02:00
parent e086d28946
commit 6ece5c009c
6 changed files with 123 additions and 103 deletions
+10 -10
View File
@@ -1,18 +1,18 @@
import { createStore } from "vuex";
import { createStore } from 'vuex'
export default createStore({
state: {
sidebarClass: '',
sidebarVisible: '',
sidebarUnfoldable: false,
},
mutations: {
toggleSidebar (state) {
if(state.sidebarClass === ''){
state.sidebarClass = 'sidebar-self-hiding-xxl'
}else{
state.sidebarClass = ''
}
}
toggleSidebar(state) {
state.sidebarVisible = !state.sidebarVisible
},
toggleUnfoldable(state) {
state.sidebarUnfoldable = !state.sidebarUnfoldable
},
},
actions: {},
modules: {},
});
})