feat(ui): Add support for endpoints[].ui.hide-errors to hide errors (#1361)

Supersedes #1292
This commit is contained in:
TwiN
2025-10-22 13:13:53 -04:00
committed by GitHub
parent c8bdecbde8
commit 9495b7389e
5 changed files with 182 additions and 16 deletions

View File

@@ -353,6 +353,9 @@ func (e *Endpoint) EvaluateHealthWithContext(context *gontext.Gontext) *Result {
}
result.port = ""
}
if processedEndpoint.UIConfig.HideErrors {
result.Errors = nil
}
if processedEndpoint.UIConfig.HideConditions {
result.ConditionResults = nil
}