2017-10-30 01:36:05 +00:00
|
|
|
/* global wikijs */
|
2017-05-21 20:43:58 +00:00
|
|
|
|
|
|
|
export default {
|
2017-05-26 00:54:03 +00:00
|
|
|
namespaced: true,
|
2017-05-21 20:43:58 +00:00
|
|
|
state: {
|
|
|
|
shown: false
|
|
|
|
},
|
|
|
|
getters: {},
|
|
|
|
mutations: {
|
|
|
|
shownChange: (state, shownState) => { state.shown = shownState }
|
|
|
|
},
|
|
|
|
actions: {
|
2017-05-31 01:23:38 +00:00
|
|
|
open({ commit }) {
|
|
|
|
commit('shownChange', true)
|
|
|
|
wikijs.$emit('modalCreateUser/init')
|
|
|
|
},
|
2017-05-26 00:54:03 +00:00
|
|
|
close({ commit }) { commit('shownChange', false) }
|
2017-05-21 20:43:58 +00:00
|
|
|
}
|
|
|
|
}
|