From dc36d8d23fdabe5c6f2ab2114392ab6ca181c7ba Mon Sep 17 00:00:00 2001 From: marsalva Date: Sat, 21 Mar 2026 19:45:20 +0000 Subject: [PATCH] Actualizar proveedores.html --- proveedores.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/proveedores.html b/proveedores.html index cfee7d8..c76eca8 100644 --- a/proveedores.html +++ b/proveedores.html @@ -721,12 +721,18 @@ document.getElementById('modalCompanyLogo').innerHTML = ``; document.getElementById('displayRef').innerText = `REF: ${svc.service_ref}`; - // šŸ›‘ AQUƍ INYECTAMOS EL ESTADO EN EL MODAL + // šŸ›‘ AQUƍ INYECTAMOS EL ESTADO EN EL MODAL Y LOS ICONOS DE ALERTA + const hasLock = raw.has_lock === true || String(raw.has_lock) === 'true'; + const hasEyes = raw.has_eyes === true || String(raw.has_eyes) === 'true'; + let modalAlerts = ''; + if (hasLock) modalAlerts += ``; + if (hasEyes) modalAlerts += ``; + const estadoCia = raw['ACTUALMENTE EN'] || raw['Estado'] || raw['ESTADO'] || ""; if (estadoCia) { - document.getElementById('displayCompany').innerHTML = `${companyName} ${estadoCia}`; + document.getElementById('displayCompany').innerHTML = `${companyName} ${estadoCia}${modalAlerts}`; } else { - document.getElementById('displayCompany').innerText = companyName; + document.getElementById('displayCompany').innerHTML = `${companyName}${modalAlerts}`; } if (isArchived) {