modal-create-page.js 422 B

12345678910111213141516171819
  1. 'use strict'
  2. export default {
  3. namespaced: true,
  4. state: {
  5. entrypath: '',
  6. shown: false,
  7. invalid: false
  8. },
  9. getters: {},
  10. mutations: {
  11. shownChange: (state, shownState) => { state.shown = shownState },
  12. pathChange: (state, newpath) => { state.entrypath = newpath }
  13. },
  14. actions: {
  15. open({ commit }) { commit('shownChange', true) },
  16. close({ commit }) { commit('shownChange', false) }
  17. }
  18. }