debloat the ui a lil

This commit is contained in:
2026-03-20 19:33:02 +00:00
parent 2640bf00ab
commit c71c83ef88
2 changed files with 5 additions and 8 deletions
+5 -7
View File
@@ -126,14 +126,12 @@ func (a *App) Run() error {
func (a *App) chooseStartupWorkflow() (string, error) { func (a *App) chooseStartupWorkflow() (string, error) {
return a.chooseMenu( return a.chooseMenu(
"Choose A Workflow", "Choose A Workflow",
"Server shares and client mounts in one place.", "",
[]string{ []string{
"Use the server tools to edit smb.conf and manage share accounts.",
"Use the client tools to add or maintain CIFS mounts in /etc/fstab.",
}, },
[]menuOption{ []menuOption{
{Key: "s", Value: "server", Label: "Server shares"}, {Key: "s", Value: "server", Label: "configure server shares"},
{Key: "c", Value: "client", Label: "Client mounts"}, {Key: "c", Value: "client", Label: "configure client mounts"},
{Key: "q", Value: "quit", Label: "Quit"}, {Key: "q", Value: "quit", Label: "Quit"},
}, },
) )
@@ -502,7 +500,7 @@ func (a *App) handleMissingConfig() (*Document, error) {
a.println("You may be asked for your administrator password.") a.println("You may be asked for your administrator password.")
a.flush() a.flush()
install, err := a.confirm("Install Samba server now", true) install, err := a.confirm("Samba was not detected on this system. \nInstall Samba server now?", true)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@@ -1150,7 +1148,7 @@ func (a *App) confirm(label string, defaultYes bool) (bool, error) {
options[0], options[1] = options[1], options[0] options[0], options[1] = options[1], options[0]
} }
answer, err := a.chooseMenu("Confirm Action", label, nil, options) answer, err := a.chooseMenu("", label, nil, options)
if err != nil { if err != nil {
return false, err return false, err
} }
-1
View File
@@ -342,7 +342,6 @@ func (m menuModel) View() string {
if len(m.intro) > 0 { if len(m.intro) > 0 {
bodyParts = append(bodyParts, m.theme.renderSection(width, "Context", m.intro)) bodyParts = append(bodyParts, m.theme.renderSection(width, "Context", m.intro))
} }
bodyParts = append(bodyParts, m.theme.sectionTitle.Width(contentWidth).Render("Actions"))
bodyParts = append(bodyParts, strings.Join(rows, "\n")) bodyParts = append(bodyParts, strings.Join(rows, "\n"))
return m.theme.renderFrame( return m.theme.renderFrame(