From a91dfa65fc385d5f8cea6f5d70e4986976c47426 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Thu, 28 May 2026 20:43:50 -0400 Subject: [PATCH] fix: export smallBadge from viewer.js, import in sidebar.js --- frontend/js/sidebar.js | 2 +- frontend/js/viewer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/sidebar.js b/frontend/js/sidebar.js index 829b28e..7d10879 100644 --- a/frontend/js/sidebar.js +++ b/frontend/js/sidebar.js @@ -3,7 +3,7 @@ import { safeCreateIcons, getFileIcon } from './utils.js'; import { api } from './auth.js'; import { populateCustomDropdown } from './ui.js'; import { _populateRecentVaultFilter } from './config.js'; -import { el, icon, getVaultIcon } from './viewer.js'; +import { el, icon, getVaultIcon, smallBadge } from './viewer.js'; // --------------------------------------------------------------------------- // Vault context switching diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index 0bac508..1bde725 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -631,7 +631,7 @@ export function icon(name, size) { return i; } -function smallBadge(count) { +export function smallBadge(count) { const s = document.createElement("span"); s.className = "badge-small"; s.style.cssText = "font-size:0.68rem;color:var(--text-muted);margin-left:4px";