From ca8f20c598f95d39b9744545ba16b1db4e4b459c Mon Sep 17 00:00:00 2001 From: Jaime Idolpx Date: Sun, 14 Jun 2026 21:48:07 -0400 Subject: [PATCH] fix(SearchLocal): add confirmation dialog for rebuilding search index --- src/app/components/SearchLocal.tsx | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/app/components/SearchLocal.tsx b/src/app/components/SearchLocal.tsx index 3219b4f..7d66929 100644 --- a/src/app/components/SearchLocal.tsx +++ b/src/app/components/SearchLocal.tsx @@ -174,6 +174,7 @@ export default function SearchLocal({ config, setConfig, onClose, onOpenFolder } const [hasSearched, setHasSearched] = useState(() => _store.hasSearched); const [mountEntry, setMountEntry] = useState(null); const [actionEntry, setActionEntry] = useState(null); + const [showScanConfirm, setShowScanConfirm] = useState(false); const [searchError, setSearchError] = useState(null); // The locate-database load progress is rendered by the SearchPane (above // this panel). The pane pre-fetches the database on mount, so by the time @@ -352,7 +353,7 @@ export default function SearchLocal({ config, setConfig, onClose, onOpenFolder } )} + + + + + {/* Actions dialog */} !open && setActionEntry(null)}>