editor-codeblock.js 316 B

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