From 627f2e0608546fccb18a8091023f86f4950f72d0 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Sat, 16 Aug 2025 17:23:21 -0600 Subject: [PATCH] =?UTF-8?q?abre=20UUID=20en=20nueva=20pesta=C3=B1a=20en=20?= =?UTF-8?q?lugar=20de=20redirigir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Cambia comportamiento de selectUuid() para usar window.open() - Aplica también a botón "Seleccionar Aleatorio" - Mantiene comportamiento de QR modal cuando modo QR está activo - Mejora flujo de trabajo para abrir múltiples jugadores --- client/src/views/UuidSelector.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/client/src/views/UuidSelector.vue b/client/src/views/UuidSelector.vue index cf4d3b6..204fdea 100644 --- a/client/src/views/UuidSelector.vue +++ b/client/src/views/UuidSelector.vue @@ -206,15 +206,23 @@ function selectUuid(uuid: string) { printQR(uuidInfo); } } else { - // Normal behavior: navigate to the UUID - router.push(`/${uuid}`); + // Open in new tab instead of redirecting + const url = `${window.location.origin}/${uuid}`; + window.open(url, '_blank'); } } function selectRandom() { if (allUuids.value.length > 0) { const randomUuidInfo = allUuids.value[Math.floor(Math.random() * allUuids.value.length)]; - selectUuid(randomUuidInfo.uuid); + if (qrMode.value) { + // Show QR modal if in QR mode + printQR(randomUuidInfo); + } else { + // Open in new tab + const url = `${window.location.origin}/${randomUuidInfo.uuid}`; + window.open(url, '_blank'); + } } }