- 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:
7
plugins/notifier.js
Normal file
7
plugins/notifier.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export default ({ app, store }, inject) => {
|
||||
inject('notifier', {
|
||||
showMessage({ content = '', color = '', icon = '', errors = [] }) {
|
||||
store.commit('snackbar/showMessage', { content, color, icon, errors })
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user