modal-create-page.js 316 Bytes
Newer Older
1 2 3
'use strict'

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