Move statusHistory module to store
This commit is contained in:
parent
c25cfe540b
commit
872569ae8e
5 changed files with 23 additions and 31 deletions
17
src/stores/statusHistory.js
Normal file
17
src/stores/statusHistory.js
Normal 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
|
||||
}
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue