From 84eac59db8ae9a9f85b5b8cd48c54ca75518b427 Mon Sep 17 00:00:00 2001 From: Chad Harp Date: Mon, 13 May 2024 20:28:21 -0500 Subject: [PATCH] Support common title, add statuses --- modules/healthchecks/widget.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/healthchecks/widget.go b/modules/healthchecks/widget.go index 91fb77165..364b60b3b 100644 --- a/modules/healthchecks/widget.go +++ b/modules/healthchecks/widget.go @@ -87,7 +87,7 @@ func (widget *Widget) content() (string, string, bool) { } } - title := fmt.Sprintf("Healthchecks (%d/%d)", numUp, len(widget.checks)) + title := fmt.Sprintf("%v (%d/%d)", widget.CommonSettings().Title, numUp, len(widget.checks)) if widget.err != nil { return title, widget.err.Error(), true @@ -113,6 +113,8 @@ func (widget *Widget) contentFrom(checks []Checks) string { prefix += "[green] + " case "down": prefix += "[red] - " + case "paused", "new": + prefix += "[lightgray] × " default: prefix += "[yellow] ~ " }