2020-01-29 17:40:15 +01:00
|
|
|
export const strict = false
|
2020-05-28 10:15:07 +02:00
|
|
|
|
|
|
|
export const state = () => ({
|
|
|
|
showErrorAlert: false,
|
2021-10-31 15:49:21 +01:00
|
|
|
variant: 'danger',
|
2020-05-28 10:15:07 +02:00
|
|
|
ErrorAlertMessage: ''
|
|
|
|
})
|
|
|
|
|
|
|
|
export const mutations = {
|
|
|
|
UPDATE_SHOW_ERROR_ALERT (state, show) {
|
|
|
|
state.showErrorAlert = show
|
|
|
|
},
|
2021-10-31 15:49:21 +01:00
|
|
|
UPDATE_VARIANT (state, variant) {
|
|
|
|
state.variant = variant
|
|
|
|
},
|
2022-07-05 18:08:51 +02:00
|
|
|
UPDATE_ERROR_ALERT_MESSAGE (state, message) {
|
2020-05-28 10:15:07 +02:00
|
|
|
state.ErrorAlertMessage = message
|
|
|
|
}
|
|
|
|
}
|