04/26 Fixed import/export functions

This commit is contained in:
2026-04-26 10:20:59 -04:00
parent 517f4dab61
commit d59fbaa9bd
2 changed files with 10 additions and 4 deletions
+6 -1
View File
@@ -3200,7 +3200,12 @@ const Vault = (() => {
}
}
return { init };
return {
init,
// Exposed for inline onclick on the sidebar li — ensures the click reaches
// switchView regardless of addEventListener binding order or timing.
switchToImportExport: () => switchView('import-export'),
};
})();
/**
+2 -1
View File
@@ -127,8 +127,9 @@
id="sidebar-import-export"
data-view="import-export"
data-tooltip="Import / Export"
onclick="Vault.switchToImportExport()"
>
<span class="sidebar-icon">↕️</span>
<span class="sidebar-icon">📤</span>
<span class="sidebar-label">Import / Export</span>
</li>
<li