From 38f7efce6bcd398d8a5790025dec68ef31ec7662 Mon Sep 17 00:00:00 2001 From: Roby Date: Thu, 22 Oct 2026 18:59:09 +0200 Subject: [PATCH] add OTAcClient update signal --- templates/index.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 81c8b3d..67579c5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -794,7 +794,7 @@
- +
` : ''} `; @@ -992,6 +992,17 @@ else { btnSvc.style.background = '#334155'; btnSvc.classList.remove('blink'); btnSvc.innerHTML = t('btnSvc'); } } + let btnOta = document.getElementById(`btn-ota-${c.id}`); + if (btnOta) { + if (healthObj && healthObj.agent_update_available) { + btnOta.style.background = 'var(--danger)'; + btnOta.style.animation = 'pulse-red 1.5s infinite'; + } else { + btnOta.style.background = '#2563eb'; + btnOta.style.animation = 'none'; + } + } + if (isOnline) { cardDiv.classList.add('online'); statusDiv.classList.remove('status-offline'); cardDiv.style.opacity = "1"; cardDiv.style.filter = "none";