mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
25 lines
411 B
JavaScript
25 lines
411 B
JavaScript
export const state = () => {
|
|
return {
|
|
placeholder: null,
|
|
editPending: false,
|
|
}
|
|
}
|
|
|
|
export const getters = {
|
|
placeholder(state) {
|
|
return state.placeholder
|
|
},
|
|
editPending(state) {
|
|
return state.editPending
|
|
},
|
|
}
|
|
|
|
export const mutations = {
|
|
SET_PLACEHOLDER_TEXT(state, text) {
|
|
state.placeholder = text
|
|
},
|
|
SET_EDIT_PENDING(state, boolean) {
|
|
state.editPending = boolean
|
|
},
|
|
}
|