Merge pull request #15756 from shariquerik/hide-notification-on-click

This commit is contained in:
Suraj Shetty 2022-02-10 17:24:59 +05:30 committed by GitHub
commit 29f98f52db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -283,12 +283,13 @@ class NotificationsView extends BaseNotificationsView {
e.stopImmediatePropagation();
this.mark_as_read(field.name, item_html);
});
item_html.on('click', () => {
this.mark_as_read(field.name, item_html);
});
}
item_html.on('click', () => {
!field.read && this.mark_as_read(field.name, item_html);
this.notifications_icon.trigger('click');
});
return item_html;
}