modal-profile-2fa.js 443 B

12345678910111213141516171819
  1. export default {
  2. namespaced: true,
  3. state: {
  4. shown: false,
  5. step: 'confirm'
  6. },
  7. getters: {},
  8. mutations: {
  9. shownChange: (state, shownState) => { state.shown = shownState },
  10. stepChange: (state, stepState) => { state.step = stepState }
  11. },
  12. actions: {
  13. open({ commit }, opts) {
  14. commit('shownChange', true)
  15. commit('stepChange', 'confirm')
  16. },
  17. close({ commit }) { commit('shownChange', false) }
  18. }
  19. }