diff --git a/src/plugins/notificationIndicator/components/NotificationIndicator.vue b/src/plugins/notificationIndicator/components/NotificationIndicator.vue index b53d80d8a66..7e13a4e952c 100644 --- a/src/plugins/notificationIndicator/components/NotificationIndicator.vue +++ b/src/plugins/notificationIndicator/components/NotificationIndicator.vue @@ -43,6 +43,7 @@ :notifications="notifications" @close="toggleNotificationsList" @clear-all="dismissAllNotifications" + @notification-dismissed="updateNotifications" /> diff --git a/src/plugins/notificationIndicator/components/NotificationMessage.vue b/src/plugins/notificationIndicator/components/NotificationMessage.vue index f6f932adf8a..34c87d34aee 100644 --- a/src/plugins/notificationIndicator/components/NotificationMessage.vue +++ b/src/plugins/notificationIndicator/components/NotificationMessage.vue @@ -38,7 +38,7 @@
@@ -53,7 +54,7 @@ export default { required: true } }, - emits: ['close', 'clear-all'], + emits: ['close', 'clear-all', 'notification-dismissed'], data() { return {}; }, @@ -84,6 +85,9 @@ export default { closeOverlay() { this.overlay.dismiss(); }, + onNotificationDismissed() { + this.$emit('notification-dismissed'); + }, notificationsCountDisplayMessage(count) { if (count > 1 || count === 0) { return `Displaying ${count} notifications`;