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

table of contents in pages

This commit is contained in:
Maxime Moraine 2020-04-02 14:20:33 +02:00
parent f415fa8613
commit a6e1803b23
12 changed files with 165 additions and 10 deletions

View file

@ -14,7 +14,7 @@ export default new Vuex.Store({
drawer: true,
rightDrawer: false,
hasRightDrawer: false,
inRightSidebar: null,
inRightDrawer: null,
},
getters: {
@ -38,7 +38,7 @@ export default new Vuex.Store({
commit('setInRightDrawer', payload)
},
},
mutations: {
setDrawer: (state, payload) => {
state.drawer = payload

View file

@ -58,6 +58,17 @@ export default {
},
actions: {
reset: ({ commit }) => {
commit('resetSearch')
commit('resetMustBeConcentration')
commit('resetMustBeRitual')
commit('resetClasses')
commit('resetLevels')
commit('resetSchools')
commit('resetComponentVerbal')
commit('resetComponentSomatic')
commit('resetComponentMaterial')
},
updateSearch: ({ commit }, payload) => {
commit('setSearch', payload)
},
@ -109,12 +120,21 @@ export default {
setSearch: (state, payload) => {
state.search = payload
},
resetSearch: (state) => {
state.search = ''
},
setMustBeConcentration: (state, payload) => {
state.mustBeConcentration = payload
},
resetMustBeConcentration: (state) => {
state.mustBeConcentration = undefined
},
setMustBeRitual: (state, payload) => {
state.mustBeRitual = payload
},
resetMustBeRitual: (state) => {
state.mustBeRitual = undefined
},
setClasses: (state, payload) => {
state.classes = payload
},
@ -196,12 +216,21 @@ export default {
setComponentVerbal: (state, payload) => {
state.componentVerbal = payload
},
resetComponentVerbal: (state) => {
state.componentVerbal = undefined
},
setComponentSomatic: (state, payload) => {
state.componentSomatic = payload
},
resetComponentSomatic: (state) => {
state.componentSomatic = undefined
},
setComponentMaterial: (state, payload) => {
state.componentMaterial = payload
},
resetComponentMaterial: (state) => {
state.componentMaterial = undefined
},
}
}