From 3a4c4f92b0ffee30b2307d925ad4bfb184804b8c Mon Sep 17 00:00:00 2001
From: Tim Kreuzer <t.kreuzer@fz-juelich.de>
Date: Fri, 7 Feb 2025 15:48:19 +0100
Subject: [PATCH] fix footer threshold

---
 templates/footer.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/templates/footer.html b/templates/footer.html
index 9b7bfea..6fa1151 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -284,6 +284,8 @@ require(["jquery"], function (
     createCarouselPages();
   })
 
+  const incidentsThresholdInteractiveFooter = {{ custom_config.get("incidentCheck", {}).get("healthThreshold", {}).get("interactive", 50) | tojson }};
+
   $(`[data-sse-incidents]`).on("sse", function (event, incidents) {
     $(`[id^='ampel-'][id$='-tooltip']`).tooltip("dispose");
     let newMaintenanceList = [];
@@ -291,7 +293,7 @@ require(["jquery"], function (
       if (systemInfo.incident) {
         $(`#ampel-${system.toLowerCase()}-tooltip`)
           .attr('data-bs-original-title', systemInfo.incident);
-        if ( systemInfo.health > incidentsThresholdInteractive ) {
+        if ( systemInfo.health > incidentsThresholdInteractiveFooter ) {
           const _system = incidentsmapping[system] ?? system;
           if ( !newMaintenanceList.includes(_system) ) {
             newMaintenanceList.push(_system);
-- 
GitLab