logo

pleroma-fe

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

postStatus.js (667B)


  1. const postStatus = {
  2. state: {
  3. params: null,
  4. modalActivated: false
  5. },
  6. mutations: {
  7. openPostStatusModal (state, params) {
  8. state.params = params
  9. state.modalActivated = true
  10. },
  11. closePostStatusModal (state) {
  12. state.modalActivated = false
  13. },
  14. resetPostStatusModal (state) {
  15. state.params = null
  16. }
  17. },
  18. actions: {
  19. openPostStatusModal ({ commit }, params) {
  20. commit('openPostStatusModal', params)
  21. },
  22. closePostStatusModal ({ commit }) {
  23. commit('closePostStatusModal')
  24. },
  25. resetPostStatusModal ({ commit }) {
  26. commit('resetPostStatusModal')
  27. }
  28. }
  29. }
  30. export default postStatus