forked from platypush/platypush
Use the new bus notification helpers
This commit is contained in:
parent
241670c9d0
commit
3940288396
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
bus.on('notification-create', this.onNotification)
|
bus.onNotification(this.onNotification)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue