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 untrusted user: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 2 additions and 2 deletions

View file

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

View file

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