ffplayout/store/index.js

20 lines
429 B
JavaScript
Raw Normal View History

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
},
2020-05-28 10:15:07 +02:00
UPDATE_ERROR_AERT_MESSAGE (state, message) {
state.ErrorAlertMessage = message
}
}