You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
365 B

  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 }) {
  13. commit('shownChange', true)
  14. wikijs.$emit('editorVideo/init')
  15. },
  16. close({ commit }) { commit('shownChange', false) }
  17. }
  18. }