refactor: editor + discard edits + save -> vue components

This commit is contained in:
NGPixel committed 2017-05-27 18:03:24 -04:00
1 parent 6faf058c21
commit 99ff1120c1
10 files changed
+141 -89

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
'use strict'
export default {
namespaced: true,
state: {},
getters: {},
mutations: {},
actions: {}
}
@@ -0,0 +1,16 @@
'use strict'
export default {
namespaced: true,
state: {
shown: false
},
getters: {},
mutations: {
shownChange: (state, shownState) => { state.shown = shownState }
},
actions: {
open({ commit }) { commit('shownChange', true) },
close({ commit }) { commit('shownChange', false) }
}
}