Use the new bus notification helpers

This commit is contained in:
Fabio Manganiello 2023-01-21 16:59:18 +01:00
parent 241670c9d0
commit 3940288396
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ export default {
}, },
mounted() { mounted() {
bus.on('notification-create', this.onNotification) bus.onNotification(this.onNotification)
}, },
} }
</script> </script>

View File

@ -5,7 +5,7 @@ export default {
name: "Notification", name: "Notification",
methods: { methods: {
notify(notification) { notify(notification) {
bus.emit('notification-create', notification) bus.publishNotification(notification)
}, },
notifyWarning(msg) { notifyWarning(msg) {