mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Reimpliments the module configuration validation
Now supports displaying errors from multiple widgets.
This commit is contained in:
@@ -41,7 +41,7 @@ func (widget *Widget) Refresh() {
|
||||
if monitorErr != nil {
|
||||
widget.monitors = nil
|
||||
widget.SetItemCount(0)
|
||||
widget.Redraw(widget.CommonSettings.Title, monitorErr.Error(), true)
|
||||
widget.Redraw(widget.CommonSettings().Title, monitorErr.Error(), true)
|
||||
return
|
||||
}
|
||||
triggeredMonitors := []datadog.Monitor{}
|
||||
@@ -60,7 +60,7 @@ func (widget *Widget) Refresh() {
|
||||
|
||||
func (widget *Widget) Render() {
|
||||
content := widget.contentFrom(widget.monitors)
|
||||
widget.Redraw(widget.CommonSettings.Title, content, false)
|
||||
widget.Redraw(widget.CommonSettings().Title, content, false)
|
||||
}
|
||||
|
||||
func (widget *Widget) HelpText() string {
|
||||
|
||||
Reference in New Issue
Block a user