From ac6358437a3268d47ddce31fbe2ff40496e645b1 Mon Sep 17 00:00:00 2001 From: Froidefond Julien Date: Fri, 27 Mar 2026 13:49:18 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20r=C3=A9initialiser=20le=20bouton=20de=20?= =?UTF-8?q?t=C3=A9l=C3=A9chargement=20apr=C3=A8s=205=20secondes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le bouton revient à son état initial après l'icône verte de confirmation, permettant de relancer un téléchargement si besoin. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/backoffice/app/components/QbittorrentDownloadButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/backoffice/app/components/QbittorrentDownloadButton.tsx b/apps/backoffice/app/components/QbittorrentDownloadButton.tsx index 589fb18..0786809 100644 --- a/apps/backoffice/app/components/QbittorrentDownloadButton.tsx +++ b/apps/backoffice/app/components/QbittorrentDownloadButton.tsx @@ -69,6 +69,7 @@ export function QbittorrentDownloadButton({ } else if (data.success) { setSent(true); onDownloadStarted?.(); + setTimeout(() => setSent(false), 5000); } else { setError(data.message || t("prowlarr.sentError")); } @@ -83,7 +84,7 @@ export function QbittorrentDownloadButton({