From e08fa17b7b3533f98f371147bd626f37a82cb49b Mon Sep 17 00:00:00 2001 From: Alexis Date: Wed, 3 Jun 2026 12:44:34 +0200 Subject: [PATCH] =?UTF-8?q?fix(export):=20optimizar=20l=C3=B3gica=20de=20d?= =?UTF-8?q?escarga=20y=20manejo=20de=20estado=20en=20componentes=20de=20ex?= =?UTF-8?q?portaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Se eliminan condiciones innecesarias en el componente ExportDropdown y se mejora la lógica de selección de publicaciones en DashboardPage y GroupResultsPage. Se asegura que la desactivación de botones se base únicamente en el estado de carga y cooldown, mejorando la experiencia del usuario al evitar mensajes de notificación redundantes. --- .../components/dashboard/ExportDropdown.jsx | 5 +--- frontend/src/pages/DashboardPage.jsx | 25 +++++++++--------- frontend/src/pages/GroupResultsPage.jsx | 26 +++++++------------ 3 files changed, 24 insertions(+), 32 deletions(-) diff --git a/frontend/src/components/dashboard/ExportDropdown.jsx b/frontend/src/components/dashboard/ExportDropdown.jsx index 49729c9..4d998b5 100644 --- a/frontend/src/components/dashboard/ExportDropdown.jsx +++ b/frontend/src/components/dashboard/ExportDropdown.jsx @@ -26,9 +26,6 @@ export function ExportDropdown({ const isBusy = Boolean(exportingFormat); const hasSelection = selectedCount > 0; - const nothingToDownload = - isAuthenticated && !hasSelection && newPublicationsCount === 0; - function handleDownload() { const { format, profile } = resolveExportFromDestination(exportDestination); onExport(format, profile); @@ -62,7 +59,7 @@ export function ExportDropdown({