fix: AuthManager import + openConfigModal reference erreur
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// config.js — extracted from app.js (3872-4865)
|
// 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 { state } from './state.js';
|
||||||
import { el, icon, openFile } from './viewer.js';
|
import { el, icon, openFile } from './viewer.js';
|
||||||
import { syncVaultSelectors, setSelectedVaultContext, refreshSidebarForContext, loadVaults, loadVaultSettings, loadTags, TagFilterService, refreshSidebarTreePreservingState } from './sidebar.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");
|
var profileBtn = document.getElementById("profile-open-btn");
|
||||||
if (profileBtn) {
|
if (profileBtn) {
|
||||||
profileBtn.addEventListener("click", function() {
|
profileBtn.addEventListener("click", function() {
|
||||||
openConfigModal();
|
var modal = document.getElementById("config-modal");
|
||||||
|
if (modal) modal.classList.add("active");
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
var el = document.getElementById("cfg-profile");
|
var el = document.getElementById("cfg-profile");
|
||||||
if (el) el.scrollIntoView({ behavior: 'smooth' });
|
if (el) el.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
|||||||
Reference in New Issue
Block a user