fix: supprime le layout shift des boutons qBittorrent au chargement

La config qBittorrent est maintenant récupérée côté serveur et passée
en prop au QbittorrentProvider, évitant le fetch client qui causait
l'apparition tardive des boutons de téléchargement.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-27 08:38:57 +01:00
parent 59f9a657a4
commit f5ddeb461b
5 changed files with 29 additions and 11 deletions

View File

@@ -48,15 +48,16 @@ export function DownloadDetectionErrorsCard({ results, t }: {
);
}
export function DownloadDetectionResultsCard({ results, libraryId, t }: {
export function DownloadDetectionResultsCard({ results, libraryId, qbConfigured, t }: {
results: DownloadDetectionResultDto[];
libraryId: string | null;
qbConfigured?: boolean;
t: TranslateFunction;
}) {
if (results.length === 0) return null;
return (
<QbittorrentProvider>
<QbittorrentProvider initialConfigured={qbConfigured}>
<Card className="lg:col-span-2">
<CardHeader>
<CardTitle>{t("jobDetail.downloadAvailableReleases")}</CardTitle>