Config view: rename Test connections to Test; center Save and Revert
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -103,7 +103,7 @@ type settingsView struct {
|
||||
root *tview.Flex
|
||||
|
||||
form *tview.Form // every field, one below the other, with section headings
|
||||
testItem *formAction // the Test connections button, below the service settings
|
||||
testItem *formAction // the Test button, below the service settings
|
||||
actions *tview.Form // the buttons below it
|
||||
groups []*tview.Form // keyboard order: the fields, then the buttons
|
||||
status *tview.TextView
|
||||
@@ -160,7 +160,7 @@ func newSettingsView(app *App) *settingsView {
|
||||
service("Sonarr", "sonarr", true)
|
||||
service("SABnzbd", "sabnzbd", false)
|
||||
// Right below the connection settings it checks.
|
||||
v.testItem = newFormAction("Test connections", v.test)
|
||||
v.testItem = newFormAction("Test", v.test)
|
||||
f.AddFormItem(v.testItem)
|
||||
|
||||
f.AddFormItem(newFormHeading("Interface"))
|
||||
@@ -181,6 +181,7 @@ func newSettingsView(app *App) *settingsView {
|
||||
v.actions = tview.NewForm().SetItemPadding(0)
|
||||
v.actions.SetBorder(true).SetTitle(" Actions ")
|
||||
v.actions.SetBorderPadding(0, 0, 1, 1)
|
||||
v.actions.SetButtonsAlign(tview.AlignCenter)
|
||||
v.actions.AddButton("Save", v.save)
|
||||
v.actions.AddButton("Revert", v.revert)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user