diff --git a/service-monitor/logscmd.go b/service-monitor/logscmd.go index 72f2756..09487d1 100644 --- a/service-monitor/logscmd.go +++ b/service-monitor/logscmd.go @@ -147,12 +147,12 @@ func logsForm() (tview.Primitive, error) { selectLog(pipe, list.Model[list.GetCurrentItem()], filter, logView) }) - menu.AddItem("Active Services", tcell.KeyF1, func() { + menu.AddItem("All Services", tcell.KeyF1, func() { activeOnly = !activeOnly if activeOnly { - menu.Items[0].Text = "Active Services" - } else { menu.Items[0].Text = "All Services" + } else { + menu.Items[0].Text = "Active Services" } list.loadModel(true, activeOnly) app.SetFocus(list) diff --git a/service-monitor/servicescmd.go b/service-monitor/servicescmd.go index df214e1..21101cc 100644 --- a/service-monitor/servicescmd.go +++ b/service-monitor/servicescmd.go @@ -78,9 +78,9 @@ func servicesForm() (tview.Primitive, error) { menu.AddItem("Active Services", tcell.KeyF1, func() { activeOnly = !activeOnly if activeOnly { - menu.Items[0].Text = "Active Services" - } else { menu.Items[0].Text = "All Services" + } else { + menu.Items[0].Text = "Active Services" } list.loadModel(false, activeOnly) app.SetFocus(list)