2023-04-05 13:23:25 -06:00
|
|
|
import { defineStore } from 'pinia'
|
|
|
|
|
|
|
|
|
|
export const useEditStatusStore = defineStore('editStatus', {
|
|
|
|
|
state: () => ({
|
|
|
|
|
params: null,
|
2026-01-06 16:22:52 +02:00
|
|
|
modalActivated: false,
|
2023-04-05 13:23:25 -06:00
|
|
|
}),
|
|
|
|
|
actions: {
|
2026-01-06 16:22:52 +02:00
|
|
|
openEditStatusModal(params) {
|
2023-04-05 13:23:25 -06:00
|
|
|
this.params = params
|
|
|
|
|
this.modalActivated = true
|
|
|
|
|
},
|
2026-01-06 16:22:52 +02:00
|
|
|
closeEditStatusModal() {
|
2023-04-05 13:23:25 -06:00
|
|
|
this.modalActivated = false
|
2026-01-06 16:22:52 +02:00
|
|
|
},
|
|
|
|
|
},
|
2023-04-05 13:23:25 -06:00
|
|
|
})
|