page-loader.js 347 B

1234567891011121314151617
  1. 'use strict'
  2. export default {
  3. namespaced: true,
  4. state: {
  5. shown: true,
  6. msg: 'Loading...'
  7. },
  8. getters: {},
  9. mutations: {
  10. shownChange: (state, shownState) => { state.shown = shownState },
  11. msgChange: (state, newText) => { state.msg = newText }
  12. },
  13. actions: {
  14. complete({ commit }) { commit('shownChange', false) }
  15. }
  16. }