refactor: editor-video -> vue component + localization

This commit is contained in:
NGPixel
2017-05-28 20:30:58 -04:00
parent 2aaebb3ce0
commit 87e780bea7
11 changed files with 133 additions and 89 deletions

View File

@@ -0,0 +1,19 @@
'use strict'
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) }
}
}