add logic, not working tho

This commit is contained in:
filipriec
2025-05-23 13:34:49 +02:00
parent 5478a2ac27
commit 58fdaa8298
15 changed files with 671 additions and 72 deletions

View File

@@ -139,6 +139,16 @@ pub async fn handle_dialog_event(
_ => { /* Handle unexpected index */ }
}
}
DialogPurpose::SaveLogicSuccess => {
match selected_index {
0 => { // "OK" button selected
app_state.hide_dialog();
buffer_state.update_history(AppView::Admin);
return Some(Ok(EventOutcome::Ok("Save success dialog dismissed.".to_string())));
}
_ => { /* Handle unexpected index */ }
}
}
}
}
_ => {} // Ignore other general actions when dialog is shown