diff --git a/templates/footer.html b/templates/footer.html index 9b7bfeadfa64506f36e10b207472758b59175344..6fa11519d98e4e3b5796b6e93b183834eb846c0b 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);