mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-30 13:14:20 +00:00
intégration des cinq royaumes
This commit is contained in:
parent
62cf701300
commit
29a950bc72
25 changed files with 866 additions and 43 deletions
|
|
@ -33,7 +33,8 @@ export default new Vuex.Store({
|
|||
isOpenAboutDialog: false,
|
||||
isOpenSupportDialog: false,
|
||||
isOpenSnackbar: false,
|
||||
snackbarText: ''
|
||||
snackbarText: '',
|
||||
l5r: false
|
||||
},
|
||||
|
||||
getters: {
|
||||
|
|
@ -46,6 +47,7 @@ export default new Vuex.Store({
|
|||
isOpenAboutDialog: state => state.isOpenAboutDialog,
|
||||
isOpenSupportDialog: state => state.isOpenSupportDialog,
|
||||
isOpenSnackbar: state => state.isOpenSnackbar,
|
||||
l5r: state => state.l5r,
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
|
@ -79,6 +81,9 @@ export default new Vuex.Store({
|
|||
snackbarText: ({ commit }, payload) => {
|
||||
commit('setSnackbarText', payload)
|
||||
},
|
||||
updateL5r: ({ commit }, payload) => {
|
||||
commit('setL5r', payload)
|
||||
},
|
||||
},
|
||||
|
||||
mutations: {
|
||||
|
|
@ -119,5 +124,9 @@ export default new Vuex.Store({
|
|||
setSnackbarText: (state, payload) => {
|
||||
state.snackbarText = payload
|
||||
},
|
||||
setL5r: (state, payload) => {
|
||||
state.l5r = payload
|
||||
Cookies.set('heros-et-dragons-l5r', state.l5r)
|
||||
}
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue