Matt Rider e583486143 Set up editor placeholder to use Vuex
- to make reactive
- safer than using global event buses ($root.$emit)

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
Co-authored-by: Mike Aono <aonomike@gmail.com>
2019-06-15 15:23:51 -03:00

18 lines
256 B
JavaScript

export const state = () => {
return {
placeholder: null,
}
}
export const getters = {
placeholder(state) {
return state.placeholder
},
}
export const mutations = {
SET_PLACEHOLDER_TEXT(state, text) {
state.placeholder = text
},
}