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 (359B)


  1. import { defineStore } from 'pinia'
  2. export const useEditStatusStore = defineStore('editStatus', {
  3. state: () => ({
  4. params: null,
  5. modalActivated: false
  6. }),
  7. actions: {
  8. openEditStatusModal (params) {
  9. this.params = params
  10. this.modalActivated = true
  11. },
  12. closeEditStatusModal () {
  13. this.modalActivated = false
  14. }
  15. }
  16. })