refactor: editor-file.vue -> image + localization
This commit is contained in:
@@ -3,15 +3,18 @@
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
shown: false
|
||||
shown: false,
|
||||
mode: 'image'
|
||||
},
|
||||
getters: {},
|
||||
mutations: {
|
||||
shownChange: (state, shownState) => { state.shown = shownState }
|
||||
shownChange: (state, shownState) => { state.shown = shownState },
|
||||
modeChange: (state, modeState) => { state.mode = modeState }
|
||||
},
|
||||
actions: {
|
||||
open({ commit }, opts) {
|
||||
commit('shownChange', true)
|
||||
commit('modeChange', opts.mode)
|
||||
wikijs.$emit('editorFile/init')
|
||||
},
|
||||
close({ commit }) { commit('shownChange', false) }
|
||||
|
Reference in New Issue
Block a user