mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
- 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>
18 lines
256 B
JavaScript
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
|
|
},
|
|
}
|