- 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:
34
components/Listener/Listener.vue
Normal file
34
components/Listener/Listener.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<span></span>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
// #warning Laravel Echo has been manually disabled until broadcasting issue is fixed.
|
||||
// async mounted() {
|
||||
// this.$echo
|
||||
// .channel('updates')
|
||||
// .listen(`.updated-user-${this.$auth.user.id}`, async (e) => {
|
||||
// await this.$auth.fetchUser()
|
||||
|
||||
// this.$notifier.showMessage({
|
||||
// content: 'Notification received',
|
||||
// color: 'success',
|
||||
// icon: 'icon-message',
|
||||
// })
|
||||
// })
|
||||
|
||||
// this.$echo
|
||||
// .channel('updates')
|
||||
// .listen(`.products-catalog-updated`, async (e) => {
|
||||
// await this.$store.dispatch('learning/pullProducts')
|
||||
|
||||
// this.$notifier.showMessage({
|
||||
// content: 'Products Catalog updated',
|
||||
// color: 'success',
|
||||
// icon: 'icon-message',
|
||||
// })
|
||||
// })
|
||||
// },
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user