From 39402883964b621bac6359a13db36e6984d971ee Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 21 Jan 2023 16:59:18 +0100 Subject: [PATCH] Use the new bus notification helpers --- platypush/backend/http/webapp/src/App.vue | 2 +- platypush/backend/http/webapp/src/utils/Notification.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {