mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-11-11 01:29:13 +01:00
26 lines
515 B
JavaScript
26 lines
515 B
JavaScript
const postStatus = {
|
|
state: {
|
|
params: null,
|
|
modalActivated: false
|
|
},
|
|
mutations: {
|
|
openPostStatusModal (state, params) {
|
|
state.params = params
|
|
state.modalActivated = true
|
|
},
|
|
closePostStatusModal (state) {
|
|
state.modalActivated = false
|
|
}
|
|
},
|
|
actions: {
|
|
openPostStatusModal ({ commit }, params) {
|
|
commit('openPostStatusModal', params)
|
|
},
|
|
closePostStatusModal ({ commit }) {
|
|
commit('closePostStatusModal')
|
|
}
|
|
}
|
|
}
|
|
|
|
export default postStatus
|