fix: export getVaultIcon from viewer.js, import in sidebar.js
This commit is contained in:
parent
c7378e4f12
commit
de5cc97015
@ -3,7 +3,7 @@ import { safeCreateIcons, getFileIcon } from './utils.js';
|
|||||||
import { api } from './auth.js';
|
import { api } from './auth.js';
|
||||||
import { populateCustomDropdown } from './ui.js';
|
import { populateCustomDropdown } from './ui.js';
|
||||||
import { _populateRecentVaultFilter } from './config.js';
|
import { _populateRecentVaultFilter } from './config.js';
|
||||||
import { el, icon } from './viewer.js';
|
import { el, icon, getVaultIcon } from './viewer.js';
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Vault context switching
|
// Vault context switching
|
||||||
|
|||||||
@ -725,7 +725,7 @@ function attachTreeItemLongPress(itemEl, getMenuData) {
|
|||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getVaultIcon(vaultName, size = 16) {
|
export function getVaultIcon(vaultName, size = 16) {
|
||||||
const v = allVaults.find((val) => val.name === vaultName);
|
const v = allVaults.find((val) => val.name === vaultName);
|
||||||
const type = v ? v.type : "VAULT";
|
const type = v ? v.type : "VAULT";
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user