fix: remove counter badges from main tab headers
Some checks failed
Lint & Test / test (push) Failing after 28s

This commit is contained in:
2026-03-24 15:57:17 +03:00
parent 9b4dbac088
commit 4caafbb78f
2 changed files with 4 additions and 13 deletions

View File

@@ -104,17 +104,8 @@ export function updateSubTabHash(tab: string, subTab: string): void {
_setHash(tab, subTab);
}
/** Update the count badge on a main tab button. Hidden when count is 0. */
export function updateTabBadge(tabName: string, count: number): void {
const badge = document.getElementById(`tab-badge-${tabName}`);
if (!badge) return;
if (count > 0) {
badge.textContent = String(count);
badge.style.display = '';
} else {
badge.style.display = 'none';
}
}
/** Update the count badge on a main tab button. Disabled — badges removed from tab headers. */
export function updateTabBadge(_tabName: string, _count: number): void {}
export function startAutoRefresh(): void {
if (refreshInterval) {