logo

pleroma-fe

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

editStatus.js (515B)


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