[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 () {
|
openNotificationMenu () {
|
||||||
// Show all notifications that have not been cleared
|
// Show all notifications that have not been cleared
|
||||||
|
if ( this.notifications.size > 0 ) {
|
||||||
this.menuOpen = true;
|
this.menuOpen = true;
|
||||||
this.notifications.forEach( ( _, id ) => {
|
this.notifications.forEach( ( _, id ) => {
|
||||||
this.show( id );
|
this.show( id );
|
||||||
} )
|
} )
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
hideNotifications () {
|
hideNotifications () {
|
||||||
this.menuOpen = false;
|
this.menuOpen = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user