remove Button Field

This commit is contained in:
hiddify
2024-09-30 21:27:18 +02:00
parent 99e39c2302
commit 3bcfc11a80
9 changed files with 643 additions and 106 deletions

View File

@@ -88,7 +88,14 @@ func (e *Base[T]) ShowMessage(title string, msg string) error {
return e.ShowDialog(ui.Form{
Title: title,
Description: msg,
Buttons: []string{ui.Button_Ok},
Fields: [][]ui.FormField{
{{
Type: ui.FieldButton,
Key: ui.Button_Ok,
Label: "Ok",
}},
},
// Buttons: []string{ui.Button_Ok},
})
}