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".
- +
+