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

* Ajout de raccourcis sur la page d'accueil

* Ajout de feedback au changement de page
This commit is contained in:
Maxime Moraine 2020-05-15 15:48:51 +02:00
parent ff7beafe06
commit 72a29eaaf0
16 changed files with 325 additions and 42 deletions

View file

@ -24,13 +24,14 @@ export default new Vuex.Store({
},
state: {
loading: false,
loading: true,
drawer: false,
rightDrawer: false,
hasRightDrawer: false,
inRightDrawer: null,
isThemeDark: false,
isOpenAboutDialog: false,
isOpenSupportDialog: false,
},
getters: {
@ -41,6 +42,7 @@ export default new Vuex.Store({
inRightDrawer: state => state.inRightDrawer,
isThemeDark: state => state.isThemeDark,
isOpenAboutDialog: state => state.isOpenAboutDialog,
isOpenSupportDialog: state => state.isOpenSupportDialog,
},
actions: {
@ -65,6 +67,9 @@ export default new Vuex.Store({
isOpenAboutDialog: ({ commit }, payload) => {
commit('setIsOpenAboutDialog', payload)
},
isOpenSupportDialog: ({ commit }, payload) => {
commit('setIsOpenSupportDialog', payload)
},
},
mutations: {
@ -91,5 +96,8 @@ export default new Vuex.Store({
setIsOpenAboutDialog: (state, payload) => {
state.isOpenAboutDialog = payload
},
setIsOpenSupportDialog: (state, payload) => {
state.isOpenSupportDialog = payload
},
},
})