modal-create-page.js 302 B

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