working warning border and restrictions

This commit is contained in:
filipriec
2025-02-19 15:25:07 +01:00
parent 78e76f8eb3
commit dc21be86e7
4 changed files with 21 additions and 4 deletions

View File

@@ -53,8 +53,9 @@ impl AppTerminal {
pub async fn handle_command(
&mut self,
action: &str, // This should be the resolved action (e.g., "save")
action: &str,
is_saved: &mut bool,
// form_state: &mut FormState,
form_data: &PostAdresarRequest,
) -> Result<(bool, String), Box<dyn std::error::Error>> {
match action {
@@ -63,6 +64,7 @@ impl AppTerminal {
let request = tonic::Request::new(form_data.clone());
let response = self.grpc_client.post_adresar(request).await?;
// form_state.has_unsaved_changes = false;
*is_saved = true;
Ok((false, format!("State saved. Response: {:?}", response)))
}