feat: update notification item buttons on mark all read

This commit is contained in:
Barış Soner Uşaklı
2023-01-15 01:39:56 -05:00
parent d2dae19a54
commit facdbbc7a3

View File

@@ -166,6 +166,10 @@ define('notifications', [
alerts.error(err);
}
unreadNotifs = {};
const notifEls = $('[component="notifications/list"] [data-nid]');
notifEls.removeClass('unread');
notifEls.find('.mark-read .unread').addClass('hidden');
notifEls.find('.mark-read .read').removeClass('hidden');
});
};