mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-04-09 14:09:32 +02:00
fix: #14108, reset filter on notif dropdown open
This commit is contained in:
@@ -9,6 +9,9 @@ define('forum/header/notifications', function () {
|
||||
notifTrigger.on('show.bs.dropdown', async (ev) => {
|
||||
const notifications = await app.require('notifications');
|
||||
const triggerEl = $(ev.target);
|
||||
const dropdownEl = triggerEl.parent().find('.dropdown-menu');
|
||||
dropdownEl.find('[data-filter="all"]').addClass('active');
|
||||
dropdownEl.find('[data-filter="unread"]').removeClass('active');
|
||||
notifications.loadNotifications(triggerEl, triggerEl.parent().find('[component="notifications/list"]'));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user