2017-10-29 21:36:05 -04:00
|
|
|
/* global wikijs */
|
2017-05-28 20:30:58 -04:00
|
|
|
|
|
|
|
export default {
|
|
|
|
namespaced: true,
|
|
|
|
state: {
|
|
|
|
shown: false
|
|
|
|
},
|
|
|
|
getters: {},
|
|
|
|
mutations: {
|
|
|
|
shownChange: (state, shownState) => { state.shown = shownState }
|
|
|
|
},
|
|
|
|
actions: {
|
|
|
|
open({ commit }) {
|
|
|
|
commit('shownChange', true)
|
|
|
|
wikijs.$emit('editorVideo/init')
|
|
|
|
},
|
|
|
|
close({ commit }) { commit('shownChange', false) }
|
|
|
|
}
|
|
|
|
}
|