diff --git a/frontend/js/config.js b/frontend/js/config.js index 0092e7a..6dee151 100644 --- a/frontend/js/config.js +++ b/frontend/js/config.js @@ -1,5 +1,5 @@ // config.js — extracted from app.js (3872-4865) -import { api } from './auth.js'; +import { api, AuthManager } from './auth.js'; import { state } from './state.js'; import { el, icon, openFile } from './viewer.js'; import { syncVaultSelectors, setSelectedVaultContext, refreshSidebarForContext, loadVaults, loadVaultSettings, loadTags, TagFilterService, refreshSidebarTreePreservingState } from './sidebar.js'; @@ -621,7 +621,8 @@ function initConfigModal() { var profileBtn = document.getElementById("profile-open-btn"); if (profileBtn) { profileBtn.addEventListener("click", function() { - openConfigModal(); + var modal = document.getElementById("config-modal"); + if (modal) modal.classList.add("active"); setTimeout(function() { var el = document.getElementById("cfg-profile"); if (el) el.scrollIntoView({ behavior: 'smooth' });