1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 13:14:20 +00:00
This commit is contained in:
Maxime Moraine 2020-04-05 14:38:20 +02:00
parent 1050fbb531
commit 38931015db
71 changed files with 5819 additions and 184 deletions

View file

@ -15,6 +15,7 @@ export default new Vuex.Store({
rightDrawer: false,
hasRightDrawer: false,
inRightDrawer: null,
isThemeDark: false,
},
getters: {
@ -22,6 +23,7 @@ export default new Vuex.Store({
rightDrawer: state => state.rightDrawer,
hasRightDrawer: state => state.hasRightDrawer,
inRightDrawer: state => state.inRightDrawer,
isThemeDark: state => state.isThemeDark,
},
actions: {
@ -37,6 +39,9 @@ export default new Vuex.Store({
updateInRightDrawer: ({ commit }, payload) => {
commit('setInRightDrawer', payload)
},
isThemeDark: ({ commit }, payload) => {
commit('setIsThemeDark', payload)
},
},
mutations: {
@ -52,5 +57,8 @@ export default new Vuex.Store({
setInRightDrawer: (state, payload) => {
state.inRightDrawer = payload
},
setIsThemeDark: (state, payload) => {
state.isThemeDark = payload
},
},
})