forked from AkkomaGang/akkoma-fe
floatingghost
2da92fcd13
Co-authored-by: Sean King <seanking2919@protonmail.com> Co-authored-by: Tusooa Zhu <tusooa@kazv.moe> Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: AkkomaGang/pleroma-fe#158
25 lines
537 B
JavaScript
25 lines
537 B
JavaScript
const statusHistory = {
|
|
state: {
|
|
params: {},
|
|
modalActivated: false
|
|
},
|
|
mutations: {
|
|
openStatusHistoryModal (state, params) {
|
|
state.params = params
|
|
state.modalActivated = true
|
|
},
|
|
closeStatusHistoryModal (state) {
|
|
state.modalActivated = false
|
|
}
|
|
},
|
|
actions: {
|
|
openStatusHistoryModal ({ commit }, params) {
|
|
commit('openStatusHistoryModal', params)
|
|
},
|
|
closeStatusHistoryModal ({ commit }) {
|
|
commit('closeStatusHistoryModal')
|
|
}
|
|
}
|
|
}
|
|
|
|
export default statusHistory
|