2017-05-21 20:43:58 +00:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|