refactor: vue comp: page-loader + modal-create-page
This commit is contained in:
17
client/js/store/modules/page-loader.js
Normal file
17
client/js/store/modules/page-loader.js
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
shown: true,
|
||||
msg: 'Loading...'
|
||||
},
|
||||
getters: {},
|
||||
mutations: {
|
||||
shownChange: (state, shownState) => { state.shown = shownState },
|
||||
msgChange: (state, newText) => { state.msg = newText }
|
||||
},
|
||||
actions: {
|
||||
complete({ commit }) { commit('shownChange', false) }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user