mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
fix(cds/favorites): next key
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
This commit is contained in:
@@ -27,12 +27,12 @@ func (widget *Widget) content() (string, string, bool) {
|
||||
func (widget *Widget) displayStatus() string {
|
||||
status, err := widget.client.MonStatus()
|
||||
|
||||
widget.SetItemCount(len(status.Lines))
|
||||
|
||||
if err != nil || len(status.Lines) == 0 {
|
||||
return fmt.Sprintf(" [red]Error: %v[white]\n", err.Error())
|
||||
}
|
||||
|
||||
widget.SetItemCount(len(status.Lines))
|
||||
|
||||
var (
|
||||
global []string
|
||||
globalWarn []string
|
||||
|
||||
Reference in New Issue
Block a user