ffplayout/store/index.js
2021-10-31 15:49:21 +01:00

20 lines
429 B
JavaScript

export const strict = false
export const state = () => ({
showErrorAlert: false,
variant: 'danger',
ErrorAlertMessage: ''
})
export const mutations = {
UPDATE_SHOW_ERROR_ALERT (state, show) {
state.showErrorAlert = show
},
UPDATE_VARIANT (state, variant) {
state.variant = variant
},
UPDATE_ERROR_AERT_MESSAGE (state, message) {
state.ErrorAlertMessage = message
}
}