mirror of
https://github.com/0x1d/rcond.git
synced 2025-12-14 18:25:21 +01:00
ui
This commit is contained in:
@@ -203,16 +203,17 @@ func (m Model) createAPForm() *huh.Form {
|
||||
Value(&m.appConfig.Wifi.AP.Encryption),
|
||||
|
||||
huh.NewConfirm().
|
||||
Key("done").
|
||||
Title("All done?").
|
||||
Key("save").
|
||||
Title("Apply configuration").
|
||||
Validate(func(v bool) error {
|
||||
if !v {
|
||||
return fmt.Errorf("Welp, finish up then")
|
||||
m.state = stateModeSelection
|
||||
return nil
|
||||
}
|
||||
return nil
|
||||
}).
|
||||
Affirmative("Yep").
|
||||
Negative("Wait, no"),
|
||||
Negative("Nope"),
|
||||
),
|
||||
).
|
||||
WithWidth(45).
|
||||
|
||||
Reference in New Issue
Block a user