From 1fb100721135a98190cfe9f03af524567b78b502 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 24 Jan 2026 02:17:27 +0100 Subject: [PATCH] fix: hide notification bell icon when notifications are disabled Also closes the notification drawer if it was open when the user disables notifications in settings. Co-Authored-By: Claude Opus 4.5 --- src/web/public/app.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/web/public/app.js b/src/web/public/app.js index aacbafd8..f6bcb934 100644 --- a/src/web/public/app.js +++ b/src/web/public/app.js @@ -2589,6 +2589,18 @@ class ClaudemanApp { if (tokenCountEl) { tokenCountEl.style.display = showTokenCount ? '' : 'none'; } + + // Hide notification bell when notifications are disabled + const notifEnabled = this.notificationManager?.preferences?.enabled ?? true; + const notifBtn = document.querySelector('.btn-notifications'); + if (notifBtn) { + notifBtn.style.display = notifEnabled ? '' : 'none'; + } + // Close the drawer if notifications got disabled while it's open + if (!notifEnabled) { + const drawer = document.getElementById('notifDrawer'); + if (drawer) drawer.classList.remove('open'); + } } applyMonitorVisibility() {