working warning border and restrictions
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user