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";