Fixed label for F1 menu entry
This commit is contained in:
parent
97b2af5da4
commit
ffdfbfb739
|
@ -147,12 +147,12 @@ func logsForm() (tview.Primitive, error) {
|
||||||
selectLog(pipe, list.Model[list.GetCurrentItem()], filter, logView)
|
selectLog(pipe, list.Model[list.GetCurrentItem()], filter, logView)
|
||||||
})
|
})
|
||||||
|
|
||||||
menu.AddItem("Active Services", tcell.KeyF1, func() {
|
menu.AddItem("All Services", tcell.KeyF1, func() {
|
||||||
activeOnly = !activeOnly
|
activeOnly = !activeOnly
|
||||||
if activeOnly {
|
if activeOnly {
|
||||||
menu.Items[0].Text = "Active Services"
|
|
||||||
} else {
|
|
||||||
menu.Items[0].Text = "All Services"
|
menu.Items[0].Text = "All Services"
|
||||||
|
} else {
|
||||||
|
menu.Items[0].Text = "Active Services"
|
||||||
}
|
}
|
||||||
list.loadModel(true, activeOnly)
|
list.loadModel(true, activeOnly)
|
||||||
app.SetFocus(list)
|
app.SetFocus(list)
|
||||||
|
|
|
@ -78,9 +78,9 @@ func servicesForm() (tview.Primitive, error) {
|
||||||
menu.AddItem("Active Services", tcell.KeyF1, func() {
|
menu.AddItem("Active Services", tcell.KeyF1, func() {
|
||||||
activeOnly = !activeOnly
|
activeOnly = !activeOnly
|
||||||
if activeOnly {
|
if activeOnly {
|
||||||
menu.Items[0].Text = "Active Services"
|
|
||||||
} else {
|
|
||||||
menu.Items[0].Text = "All Services"
|
menu.Items[0].Text = "All Services"
|
||||||
|
} else {
|
||||||
|
menu.Items[0].Text = "Active Services"
|
||||||
}
|
}
|
||||||
list.loadModel(false, activeOnly)
|
list.loadModel(false, activeOnly)
|
||||||
app.SetFocus(list)
|
app.SetFocus(list)
|
||||||
|
|
Loading…
Reference in New Issue