From 03c6e74bd69831ca548ea41f250f23d539d7efe7 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 25 May 2026 14:37:59 -0500 Subject: [PATCH] up --- resources/views/notif_config.html | 4 +- resources/views/vcard_api.html | 69 +++++++++++++------------------ 2 files changed, 31 insertions(+), 42 deletions(-) diff --git a/resources/views/notif_config.html b/resources/views/notif_config.html index 87a6413..333f111 100644 --- a/resources/views/notif_config.html +++ b/resources/views/notif_config.html @@ -197,10 +197,10 @@ function notifConfig() { toast: { visible: false, ok: true, msg: '' }, async init() { - // Verificar si hay telegram configurado + // Verificar si hay telegram configurado (la API devuelve array directo) try { const t = await axios.get('/app/loadtelegram'); - this.hasTelegramConfig = (t.data?.items?.length ?? 0) > 0; + this.hasTelegramConfig = Array.isArray(t.data) && t.data.some(b => b.activo); } catch {} // Cargar configuración existente diff --git a/resources/views/vcard_api.html b/resources/views/vcard_api.html index 7f92355..65289ed 100644 --- a/resources/views/vcard_api.html +++ b/resources/views/vcard_api.html @@ -72,8 +72,14 @@
Sin datos. Haz clic en "Cargar".
- +
+