Fixed uptime button color.

This commit is contained in:
Christian P. MOMON 2022-03-11 14:48:19 +01:00
parent f7efce5c4f
commit bca355a047
2 changed files with 2 additions and 2 deletions

View file

@ -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");
}

View file

@ -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");
}