From 1111da578fc849125f3c8d24c092f2791c675d90 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 18 Jun 2026 15:27:19 -0500 Subject: [PATCH] =?UTF-8?q?Fix:=20bot=C3=B3n=20descargar=20JSON=20no=20apa?= =?UTF-8?q?rec=C3=ADa=20=E2=80=94=20classList.replace=20por=20remove/add?= =?UTF-8?q?=20+=20style.display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- app/templates/queries.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/templates/queries.html b/app/templates/queries.html index b220325..4593e99 100644 --- a/app/templates/queries.html +++ b/app/templates/queries.html @@ -371,7 +371,9 @@ async function ejecutar() { html += ''; resultDiv.innerHTML = html; ultimosRows = data.rows; - document.getElementById('btn-download').classList.replace('hidden', 'flex'); + const btnDl = document.getElementById('btn-download'); + btnDl.classList.remove('hidden'); + btnDl.style.display = 'inline-flex'; const shown = Math.min(data.total, 200); const trunc = data.total > 200 ? ` (truncado a 200)` : ''; @@ -391,7 +393,9 @@ function limpiar() { document.getElementById('result-table').innerHTML = '

Ejecutá una consulta para ver resultados

'; document.getElementById('result-info').textContent = ''; document.getElementById('status-bar').innerHTML = ''; - document.getElementById('btn-download').classList.replace('flex', 'hidden'); + const btnDl2 = document.getElementById('btn-download'); + btnDl2.classList.add('hidden'); + btnDl2.style.display = ''; ultimosRows = []; }