1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 13:14:20 +00:00

WIP bestiaire

This commit is contained in:
Maxime Moraine 2020-04-10 16:37:48 +02:00
parent bde611ae9b
commit 510db9f858
58 changed files with 29311 additions and 365 deletions

View file

@ -13,6 +13,7 @@ export default new Vuex.Store({
},
state: {
loading: false,
drawer: true,
rightDrawer: false,
hasRightDrawer: false,
@ -21,6 +22,7 @@ export default new Vuex.Store({
},
getters: {
loading: state => state.loading,
drawer: state => state.drawer,
rightDrawer: state => state.rightDrawer,
hasRightDrawer: state => state.hasRightDrawer,
@ -29,6 +31,9 @@ export default new Vuex.Store({
},
actions: {
updateLoading: ({ commit }, payload) => {
commit('setLoading', payload)
},
updateDrawer: ({ commit }, payload) => {
commit('setDrawer', payload)
},
@ -47,6 +52,9 @@ export default new Vuex.Store({
},
mutations: {
setLoading: (state, payload) => {
state.loading = payload
},
setDrawer: (state, payload) => {
state.drawer = payload
},