[Notifications] Only enable menu if there are notifications
This commit is contained in:
parent
791f10aad4
commit
dda261ac3c
@ -111,11 +111,13 @@ class Notifier implements Subscribable {
|
||||
|
||||
openNotificationMenu () {
|
||||
// Show all notifications that have not been cleared
|
||||
if ( this.notifications.size > 0 ) {
|
||||
this.menuOpen = true;
|
||||
this.notifications.forEach( ( _, id ) => {
|
||||
this.show( id );
|
||||
} )
|
||||
}
|
||||
}
|
||||
|
||||
hideNotifications () {
|
||||
this.menuOpen = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user