From de5cc97015300d6084cd7efda74217aae7f0a261 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Thu, 28 May 2026 20:31:15 -0400 Subject: [PATCH] fix: export getVaultIcon 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 c4b00a7..829b28e 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 } from './viewer.js'; +import { el, icon, getVaultIcon } from './viewer.js'; // --------------------------------------------------------------------------- // Vault context switching diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index 58f6dd6..c638ce9 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -725,7 +725,7 @@ function attachTreeItemLongPress(itemEl, getMenuData) { }, true); } -function getVaultIcon(vaultName, size = 16) { +export function getVaultIcon(vaultName, size = 16) { const v = allVaults.find((val) => val.name === vaultName); const type = v ? v.type : "VAULT";