feat: fix hidden files whitelist logic to require ALL hidden path components be whitelisted, add vault config to single file indexing, and improve reindex button feedback with save phase indication

This commit is contained in:
2026-03-26 14:14:04 -04:00
parent 08e4d732f5
commit 80e2a7fc53
3 changed files with 23 additions and 11 deletions
+6 -3
View File
@@ -3425,13 +3425,16 @@
async function reindexWithHiddenFiles() {
const btn = document.getElementById("cfg-reindex-hidden");
if (btn) { btn.disabled = true; btn.textContent = "⏳ Réindexation..."; }
if (btn) { btn.disabled = true; btn.textContent = "💾 Sauvegarde..."; }
try {
// First save the settings
// First save the settings to ensure they are persisted
await saveHiddenFilesSettings();
// Then trigger reindex
// Update button text to show reindexing phase
if (btn) { btn.textContent = "⏳ Réindexation..."; }
// Then trigger reindex with saved settings
await api("/api/index/reload");
showToast("✓ Réindexation terminée", "success");
loadDiagnostics();