displaying data properly, fixing hardcoded backend to firma part one
This commit is contained in:
@@ -338,15 +338,23 @@ impl EventHandler {
|
||||
}
|
||||
}
|
||||
|
||||
let mut current_position = form_state.current_position;
|
||||
let total_count = form_state.total_count;
|
||||
let (_should_exit, message) = read_only::handle_read_only_event(
|
||||
app_state, key_event, config, form_state, login_state, register_state,
|
||||
&mut admin_state.add_table_state, &mut admin_state.add_logic_state,
|
||||
&mut self.key_sequence_tracker, &mut current_position, total_count,
|
||||
grpc_client, &mut self.command_message, &mut self.edit_mode_cooldown,
|
||||
app_state,
|
||||
key_event,
|
||||
config,
|
||||
form_state,
|
||||
login_state,
|
||||
register_state,
|
||||
&mut admin_state.add_table_state,
|
||||
&mut admin_state.add_logic_state,
|
||||
&mut self.key_sequence_tracker,
|
||||
// No more current_position or total_count arguments
|
||||
grpc_client,
|
||||
&mut self.command_message,
|
||||
&mut self.edit_mode_cooldown,
|
||||
&mut self.ideal_cursor_column,
|
||||
).await?;
|
||||
)
|
||||
.await?;
|
||||
return Ok(EventOutcome::Ok(message));
|
||||
}
|
||||
|
||||
@@ -365,15 +373,22 @@ impl EventHandler {
|
||||
return Ok(EventOutcome::Ok("".to_string()));
|
||||
}
|
||||
|
||||
let mut current_position = form_state.current_position;
|
||||
let total_count = form_state.total_count;
|
||||
let (_should_exit, message) = read_only::handle_read_only_event(
|
||||
app_state, key_event, config, form_state, login_state, register_state,
|
||||
&mut admin_state.add_table_state, &mut admin_state.add_logic_state,
|
||||
&mut self.key_sequence_tracker, &mut current_position, total_count,
|
||||
grpc_client, &mut self.command_message, &mut self.edit_mode_cooldown,
|
||||
app_state,
|
||||
key_event,
|
||||
config,
|
||||
form_state,
|
||||
login_state,
|
||||
register_state,
|
||||
&mut admin_state.add_table_state,
|
||||
&mut admin_state.add_logic_state,
|
||||
&mut self.key_sequence_tracker,
|
||||
grpc_client,
|
||||
&mut self.command_message,
|
||||
&mut self.edit_mode_cooldown,
|
||||
&mut self.ideal_cursor_column,
|
||||
).await?;
|
||||
)
|
||||
.await?;
|
||||
return Ok(EventOutcome::Ok(message));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user