Skip to content
Snippets Groups Projects
Commit 3a4c4f92 authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

fix footer threshold

parent 547c28c0
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment