mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 17:08:57 +00:00
Add check for minimized notification (#6431)
This commit is contained in:
@ -415,7 +415,10 @@ export default class NotificationAPI extends EventEmitter {
|
|||||||
for (; i < this.notifications.length; i++) {
|
for (; i < this.notifications.length; i++) {
|
||||||
notification = this.notifications[i];
|
notification = this.notifications[i];
|
||||||
|
|
||||||
if (!notification.model.minimized
|
const isNotificationMinimized = notification.model.minimized
|
||||||
|
|| notification?.model?.options?.minimized;
|
||||||
|
|
||||||
|
if (!isNotificationMinimized
|
||||||
&& notification !== this.activeNotification) {
|
&& notification !== this.activeNotification) {
|
||||||
return notification;
|
return notification;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user