diff options
Diffstat (limited to 'web_src/js/features/notification.js')
-rw-r--r-- | web_src/js/features/notification.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/features/notification.js b/web_src/js/features/notification.js index 405b92d7e1..6c056c6d14 100644 --- a/web_src/js/features/notification.js +++ b/web_src/js/features/notification.js @@ -29,7 +29,7 @@ async function receiveUpdateCount(event) { const data = JSON.parse(event.data); for (const count of document.querySelectorAll('.notification_count')) { - count.classList.toggle('hidden', data.Count === 0); + count.classList.toggle('gt-hidden', data.Count === 0); count.textContent = `${data.Count}`; } await updateNotificationTable(); @@ -165,9 +165,9 @@ async function updateNotificationCount() { const notificationCount = $('.notification_count'); if (data.new === 0) { - notificationCount.addClass('hidden'); + notificationCount.addClass('gt-hidden'); } else { - notificationCount.removeClass('hidden'); + notificationCount.removeClass('gt-hidden'); } notificationCount.text(`${data.new}`); |