04/26 Fixed import/export functions
This commit is contained in:
@@ -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'),
|
||||
};
|
||||
})();
|
||||
|
||||
/**
|
||||
@@ -3263,4 +3268,4 @@ const Vault = (() => {
|
||||
}
|
||||
})();
|
||||
|
||||
document.addEventListener("DOMContentLoaded", Vault.init);
|
||||
document.addEventListener("DOMContentLoaded", Vault.init);
|
||||
@@ -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
|
||||
@@ -1004,4 +1005,4 @@
|
||||
<script src="{{ url_for('static', filename='js/auth.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/sharing.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/vault.js') }}"></script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user