1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-11-11 09:19:03 +01:00
pleroma-fe/src/modules/postStatus.js

26 lines
515 B
JavaScript
Raw Normal View History

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