fix: export getVaultIcon from viewer.js, import in sidebar.js
CI / lint (push) Successful in 16s
CI / security (push) Successful in 13s
CI / test (push) Successful in 18s
CI / build (push) Successful in 8s

This commit is contained in:
2026-05-28 20:31:15 -04:00
parent c7378e4f12
commit de5cc97015
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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";