2023-01-11 04:54:25 -05:00
|
|
|
import { defineStore } from 'pinia'
|
|
|
|
|
|
|
|
export const useIndex = defineStore('index', {
|
|
|
|
state: () => ({
|
|
|
|
showAlert: false,
|
2023-01-11 07:41:22 -05:00
|
|
|
alertVariant: 'alert-success',
|
2023-01-11 04:54:25 -05:00
|
|
|
alertMsg: '',
|
|
|
|
}),
|
|
|
|
|
|
|
|
getters: {},
|
|
|
|
actions: {
|
|
|
|
resetAlert() {
|
|
|
|
this.showAlert = false
|
2023-01-11 07:41:22 -05:00
|
|
|
this.alertVariant = 'alert-success'
|
2023-01-11 04:54:25 -05:00
|
|
|
this.alertMsg = ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|