refactor: vue comp: page-loader + modal-create-page

This commit is contained in:
NGPixel committed 2017-05-26 00:12:38 -04:00
1 parent f075c266ef
commit c13c754c4c
10 files changed
+89 -42

No files matched your search

+17
View 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) }
}
}