modal-delete-user.js 316 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
'use strict'

export default {
  namespaced: true,
  state: {
    shown: false
  },
  getters: {},
  mutations: {
    shownChange: (state, shownState) => { state.shown = shownState }
  },
  actions: {
    open({ commit }) { commit('shownChange', true) },
    close({ commit }) { commit('shownChange', false) }
  }
}