diff --git a/platypush/backend/http/webapp/src/App.vue b/platypush/backend/http/webapp/src/App.vue index 0bea19ca..0ac92692 100644 --- a/platypush/backend/http/webapp/src/App.vue +++ b/platypush/backend/http/webapp/src/App.vue @@ -69,7 +69,7 @@ export default { }, mounted() { - bus.on('notification-create', this.onNotification) + bus.onNotification(this.onNotification) }, } diff --git a/platypush/backend/http/webapp/src/utils/Notification.vue b/platypush/backend/http/webapp/src/utils/Notification.vue index f6446cef..0d4fe9d0 100644 --- a/platypush/backend/http/webapp/src/utils/Notification.vue +++ b/platypush/backend/http/webapp/src/utils/Notification.vue @@ -5,7 +5,7 @@ export default { name: "Notification", methods: { notify(notification) { - bus.emit('notification-create', notification) + bus.publishNotification(notification) }, notifyWarning(msg) {