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:
+6
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user