Move postStatus module to store

This commit is contained in:
Sean King 2023-04-05 13:01:37 -06:00
commit 27e36dbc2e
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
6 changed files with 25 additions and 32 deletions

17
src/stores/postStatus.js Normal file
View file

@ -0,0 +1,17 @@
import { defineStore } from 'pinia'
export const usePostStatusStore = defineStore('postStatus', {
state: () => ({
params: null,
modalActivated: false
}),
actions: {
openPostStatusModal (params) {
this.params = params
this.modalActivated = true
},
closePostStatusModal () {
this.modalActivated = false
}
}
})