Move statusHistory module to store

This commit is contained in:
Sean King 2023-04-05 14:13:28 -06:00
commit 872569ae8e
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
5 changed files with 23 additions and 31 deletions

View file

@ -0,0 +1,17 @@
import { defineStore } from 'pinia'
export const useStatusHistoryStore = defineStore('statusHistory', {
state: () => ({
params: {},
modalActivated: false
}),
actions: {
openStatusHistoryModal (params) {
this.params = params
this.modalActivated = true
},
closeStatusHistoryModal () {
this.modalActivated = false
}
}
})