fix: toujours afficher le bouton replace dans la modale Prowlarr
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 42s

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) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 17:36:37 +02:00
parent 25355d6827
commit 0cce4e50a7

View File

@@ -56,8 +56,8 @@ export function QbittorrentDownloadButton({
if (!configured) return null; if (!configured) return null;
const showReplaceButton = allVolumes && allVolumes.length > 0 const showReplaceButton = alwaysShowReplace
&& (alwaysShowReplace || (expectedVolumes && allVolumes.length > expectedVolumes.length)); || (allVolumes && allVolumes.length > 0 && expectedVolumes && allVolumes.length > expectedVolumes.length);
async function handleSend(volumes?: number[], replaceExisting = false) { async function handleSend(volumes?: number[], replaceExisting = false) {
setSending(true); setSending(true);