diff --git a/proveedores.html b/proveedores.html index c76eca8..5feda8e 100644 --- a/proveedores.html +++ b/proveedores.html @@ -120,6 +120,7 @@
REF: -- -- +
@@ -721,18 +722,22 @@ document.getElementById('modalCompanyLogo').innerHTML = ``; document.getElementById('displayRef').innerText = `REF: ${svc.service_ref}`; - // šŸ›‘ AQUƍ INYECTAMOS EL ESTADO EN EL MODAL Y LOS ICONOS DE ALERTA + // šŸ›‘ AQUƍ INYECTAMOS EL ESTADO EN EL MODAL Y LOS ICONOS DE ALERTA SEPARADOS 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 += ``; + if (hasLock) modalAlerts += ``; + if (hasEyes) modalAlerts += ``; const estadoCia = raw['ACTUALMENTE EN'] || raw['Estado'] || raw['ESTADO'] || ""; if (estadoCia) { - document.getElementById('displayCompany').innerHTML = `${companyName} ${estadoCia}${modalAlerts}`; + document.getElementById('displayCompany').innerHTML = `${companyName} ${estadoCia}`; } else { - document.getElementById('displayCompany').innerHTML = `${companyName}${modalAlerts}`; + document.getElementById('displayCompany').innerHTML = companyName; + } + + if (document.getElementById('modalAlertsContainer')) { + document.getElementById('modalAlertsContainer').innerHTML = modalAlerts; } if (isArchived) {