add individual library scanning
This commit is contained in:
@@ -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} />}
|
||||
|
||||
Reference in New Issue
Block a user