modal-create-user.js 369 Bytes
Newer Older
1 2 3
'use strict'

export default {
4
  namespaced: true,
5 6 7 8 9 10 11 12
  state: {
    shown: false
  },
  getters: {},
  mutations: {
    shownChange: (state, shownState) => { state.shown = shownState }
  },
  actions: {
13 14 15 16
    open({ commit }) {
      commit('shownChange', true)
      wikijs.$emit('modalCreateUser/init')
    },
17
    close({ commit }) { commit('shownChange', false) }
18 19
  }
}