diff --git a/frontend/js/palette.js b/frontend/js/palette.js index 8fd72e5..bff1b7e 100644 --- a/frontend/js/palette.js +++ b/frontend/js/palette.js @@ -28,7 +28,7 @@ const COMMANDS = [ { id: 'theme', label: 'đ Changer le thème', description: 'Basculer clair/sombre', action: () => { close(); toggleTheme(); } }, { id: 'reindex', label: 'đ RĂŠindexer', description: 'Forcer la rĂŠindexation complète', action: async () => { close(); try { await api('/api/index/reload'); showToast('Index rechargĂŠ', 'success'); } catch { showToast('Erreur de rĂŠindexation', 'error'); } } }, { id: 'help', label: 'â Aide', description: 'Ouvrir l\'aide', action: () => { close(); const helpBtn = document.getElementById('header-help-btn'); if (helpBtn) helpBtn.click(); } }, - { id: 'config', label: 'âď¸ Configuration', description: 'Ouvrir les paramètres', action: () => { close(); document.querySelector('[data-tab-config]')?.click(); } }, + { id: 'config', label: 'âď¸ Configuration', description: 'Ouvrir les paramètres', action: () => { close(); const btn = document.getElementById('config-open-btn'); if (btn) btn.click(); } }, ]; // ââ Create DOM structure ââ @@ -41,7 +41,7 @@ function createDOM() {