working needs a small fix

This commit is contained in:
filipriec
2025-04-07 13:24:22 +02:00
parent e29b576102
commit 37f12ea6f0
7 changed files with 69 additions and 18 deletions

View File

@@ -6,11 +6,12 @@ use crate::services::grpc_client::GrpcClient;
use crate::state::canvas_state::CanvasState;
use crate::state::pages::auth::AuthState;
use crate::state::pages::form::FormState;
use crate::state::state::AppState;
use crate::functions::modes::read_only::{auth_ro, form_ro};
use crossterm::event::KeyEvent;
pub async fn handle_read_only_event(
app_state: &crate::state::state::AppState,
app_state: &mut AppState,
key: KeyEvent,
config: &Config,
form_state: &mut FormState,
@@ -90,6 +91,7 @@ pub async fn handle_read_only_event(
} else if app_state.ui.show_login {
auth_ro::execute_action(
action,
app_state,
auth_state,
ideal_cursor_column,
key_sequence_tracker,
@@ -136,6 +138,7 @@ pub async fn handle_read_only_event(
} else if app_state.ui.show_login {
auth_ro::execute_action(
action,
app_state,
auth_state,
ideal_cursor_column,
key_sequence_tracker,
@@ -181,6 +184,7 @@ pub async fn handle_read_only_event(
} else if app_state.ui.show_login {
auth_ro::execute_action(
action,
app_state,
auth_state,
ideal_cursor_column,
key_sequence_tracker,