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

@@ -6,6 +6,7 @@ import GamesView from '@/components/games/GamesView'
import MixedView from '@/components/mixed/MixedView'
import MoviesView from '@/components/movies/MoviesView'
import TvView from '@/components/tv/TvView'
import ScanLibraryButton from '@/components/ScanLibraryButton'
interface Props {
params: Promise<{ id: string }>
@@ -37,6 +38,11 @@ export default async function LibraryPage({ params, searchParams }: Props) {
<span className="text-sm font-medium" style={{ color: 'var(--text-primary)' }}>
{library.name}
</span>
{session.role === 'admin' && (
<div className="ml-auto">
<ScanLibraryButton libraryId={id} />
</div>
)}
</div>
{library.type === 'games' && <GamesView libraryId={id} />}