logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

statusHistory.js (537B)


  1. const statusHistory = {
  2. state: {
  3. params: {},
  4. modalActivated: false
  5. },
  6. mutations: {
  7. openStatusHistoryModal (state, params) {
  8. state.params = params
  9. state.modalActivated = true
  10. },
  11. closeStatusHistoryModal (state) {
  12. state.modalActivated = false
  13. }
  14. },
  15. actions: {
  16. openStatusHistoryModal ({ commit }, params) {
  17. commit('openStatusHistoryModal', params)
  18. },
  19. closeStatusHistoryModal ({ commit }) {
  20. commit('closeStatusHistoryModal')
  21. }
  22. }
  23. }
  24. export default statusHistory