add individual library scanning

This commit is contained in:
Garret Patti
2026-04-12 13:51:51 -04:00
parent 7e9ba6e014
commit aae41e9803
5 changed files with 105 additions and 1 deletions

View File

@@ -286,7 +286,10 @@ function AddLibraryForm({ onAdded }: { onAdded: () => void }) {
return
}
// Success — reset form
// Success — fire scan for the new library (fire-and-forget)
void fetch(`/api/scan/${encodeURIComponent((data as { id: string }).id)}`, { method: 'POST' })
// Reset form
setName('')
setLibPath('')
setType('games')