From bca355a0470c0197795e6267bb0282ceb6f31383 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 11 Mar 2022 14:48:19 +0100 Subject: [PATCH] Fixed uptime button color. --- src/fr/devinsy/statoolinfos/htmlize/FederationHeaderView.java | 2 +- src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/htmlize/FederationHeaderView.java b/src/fr/devinsy/statoolinfos/htmlize/FederationHeaderView.java index cd60b9d..cd15008 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/FederationHeaderView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/FederationHeaderView.java @@ -82,7 +82,7 @@ public class FederationHeaderView data.setAttribute("crawlLink", "href", federation.getTechnicalName() + "-crawl.xhtml"); data.setAttribute("uptimeLink", "href", federation.getLocalFileBaseName() + "-uptimes.xhtml"); - if (HtmlizerContext.instance().getUptimeJournal().hasRecentError(federation.getServicesAll())) + if (HtmlizerContext.instance().getUptimeJournal().hasRecentError(federation.getActiveServices())) { data.setAttribute("uptimeLinkImg", "src", "circle-icons/countdown-ko-mono.svg"); } diff --git a/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java b/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java index ab9b74a..e8e0bac 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java @@ -115,7 +115,7 @@ public class OrganizationHeaderView } data.setAttribute("uptimeLink", "href", organization.getLocalFileBaseName() + "-uptimes.xhtml"); - if (HtmlizerContext.instance().getUptimeJournal().hasRecentError(organization.getServices())) + if (HtmlizerContext.instance().getUptimeJournal().hasRecentError(organization.getActiveServices())) { data.setAttribute("uptimeLinkImg", "src", "circle-icons/countdown-ko-mono.svg"); }