mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-10 01:09:43 +02:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -2589,6 +2589,18 @@ class ClaudemanApp {
|
|||||||
if (tokenCountEl) {
|
if (tokenCountEl) {
|
||||||
tokenCountEl.style.display = showTokenCount ? '' : 'none';
|
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() {
|
applyMonitorVisibility() {
|
||||||
|
|||||||
Reference in New Issue
Block a user