From 0cce4e50a7b06992fb116492bc30c0fcc13d2353 Mon Sep 17 00:00:00 2001 From: Froidefond Julien Date: Sun, 29 Mar 2026 17:36:37 +0200 Subject: [PATCH] fix: toujours afficher le bouton replace dans la modale Prowlarr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit alwaysShowReplace suffit maintenant à montrer le bouton replace, même quand allVolumes est vide (série complète sans volumes manquants). Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/backoffice/app/components/QbittorrentDownloadButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backoffice/app/components/QbittorrentDownloadButton.tsx b/apps/backoffice/app/components/QbittorrentDownloadButton.tsx index aa4c707..55e0cae 100644 --- a/apps/backoffice/app/components/QbittorrentDownloadButton.tsx +++ b/apps/backoffice/app/components/QbittorrentDownloadButton.tsx @@ -56,8 +56,8 @@ export function QbittorrentDownloadButton({ if (!configured) return null; - const showReplaceButton = allVolumes && allVolumes.length > 0 - && (alwaysShowReplace || (expectedVolumes && allVolumes.length > expectedVolumes.length)); + const showReplaceButton = alwaysShowReplace + || (allVolumes && allVolumes.length > 0 && expectedVolumes && allVolumes.length > expectedVolumes.length); async function handleSend(volumes?: number[], replaceExisting = false) { setSending(true);