- Complete GGZ Ecademy Nuxt.js user portal - Learning products browser and management - Member management interface - User authentication and roles - Multi-language support (NL/EN) - Vuex store for state management - Component-based architecture
This commit is contained in:
15
store/snackbar.js
Normal file
15
store/snackbar.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export const state = () => ({
|
||||
color: '',
|
||||
content: '',
|
||||
icon: '',
|
||||
errors: []
|
||||
})
|
||||
|
||||
export const mutations = {
|
||||
showMessage(state, payload) {
|
||||
state.content = payload.content
|
||||
state.color = payload.color
|
||||
state.icon = payload.icon;
|
||||
state.errors = payload.errors;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user