notification event is only for the active noti

This commit is contained in:
David Tsay 2023-09-28 11:32:23 -07:00
parent 7a0bc7a15b
commit 5402a40888

View File

@ -69,12 +69,10 @@ export default {
}
},
mounted() {
this.openmct.notifications.on('notification', this.updateNotifications);
this.openmct.notifications.on('add', this.updateNotifications);
this.openmct.notifications.on('dismiss-all', this.updateNotifications);
},
unmounted() {
this.openmct.notifications.off('notification', this.updateNotifications);
this.openmct.notifications.off('add', this.updateNotifications);
this.openmct.notifications.off('dismiss-all', this.updateNotifications);
},