exit menu buttons upon success

This commit is contained in:
filipriec
2025-04-05 19:42:29 +02:00
parent c3decdac13
commit 5879b40e8c

View File

@@ -45,16 +45,13 @@ pub async fn save(
); );
// Use the helper method to configure and show the dialog // Use the helper method to configure and show the dialog
// TODO Implement logic for pressing menu or exit buttons, not imeplementing it now,
// need to do other more important stuff now"
app_state.show_dialog( app_state.show_dialog(
"Login Success", "Login Success",
&success_message, &success_message,
vec!["OK".to_string()], // Pass buttons here vec!["Menu".to_string(), "Exit".to_string()],
); );
// REMOVE these lines:
// app_state.ui.dialog.dialog_title = "Login Success".to_string();
// app_state.ui.dialog.dialog_message = success_message;
// app_state.ui.dialog.dialog_show = true;
// app_state.ui.dialog.dialog_button_active = true;
Ok("Login successful, details shown in dialog.".to_string()) Ok("Login successful, details shown in dialog.".to_string())
} }