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),
|
Value(&m.appConfig.Wifi.AP.Encryption),
|
||||||
|
|
||||||
huh.NewConfirm().
|
huh.NewConfirm().
|
||||||
Key("done").
|
Key("save").
|
||||||
Title("All done?").
|
Title("Apply configuration").
|
||||||
Validate(func(v bool) error {
|
Validate(func(v bool) error {
|
||||||
if !v {
|
if !v {
|
||||||
return fmt.Errorf("Welp, finish up then")
|
m.state = stateModeSelection
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}).
|
}).
|
||||||
Affirmative("Yep").
|
Affirmative("Yep").
|
||||||
Negative("Wait, no"),
|
Negative("Nope"),
|
||||||
),
|
),
|
||||||
).
|
).
|
||||||
WithWidth(45).
|
WithWidth(45).
|
||||||
|
|||||||
Reference in New Issue
Block a user