Fixes leave on the server and reworked login flow.

This commit is contained in:
2025-06-27 14:45:36 +02:00
parent fbe456a0f5
commit f0883a0ff0
31 changed files with 472 additions and 71 deletions

View File

@@ -22,7 +22,7 @@ impl ListGamenights {
#[async_trait]
impl<'a> Flow<'a> for ListGamenights {
async fn run(&self, state: &'a mut GamenightState) -> FlowResult<'a> {
let response = get_gamenights(&state.configuration).await?;
let response = get_gamenights(&state.api_configuration).await?;
let mut view_flows: Vec<Box<dyn Flow<'_> + Send>> = vec![];
@@ -41,6 +41,7 @@ impl<'a> Flow<'a> for ListGamenights {
let choice = Select::new("What gamenight would you like to view?", view_flows)
.prompt_skippable()?;
clear_screen::clear();
handle_choice_option(&choice, self, state).await
}
}