fix: remove counter badges from main tab headers
Some checks failed
Lint & Test / test (push) Failing after 28s
Some checks failed
Lint & Test / test (push) Failing after 28s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user