fixed form state removed, but not won, aint working yet
This commit is contained in:
@@ -18,7 +18,6 @@ pub async fn handle_command_event(
|
||||
app_state: &mut AppState,
|
||||
login_state: &LoginState,
|
||||
register_state: &RegisterState,
|
||||
form_state: &mut FormState,
|
||||
command_input: &mut String,
|
||||
command_message: &mut String,
|
||||
grpc_client: &mut GrpcClient,
|
||||
@@ -38,7 +37,6 @@ pub async fn handle_command_event(
|
||||
if config.is_command_execute(key.code, key.modifiers) {
|
||||
return process_command(
|
||||
config,
|
||||
form_state,
|
||||
app_state,
|
||||
login_state,
|
||||
register_state,
|
||||
@@ -73,7 +71,6 @@ pub async fn handle_command_event(
|
||||
|
||||
async fn process_command(
|
||||
config: &Config,
|
||||
form_state: &mut FormState,
|
||||
app_state: &mut AppState,
|
||||
login_state: &LoginState,
|
||||
register_state: &RegisterState,
|
||||
@@ -103,7 +100,6 @@ async fn process_command(
|
||||
action,
|
||||
terminal,
|
||||
app_state,
|
||||
form_state,
|
||||
login_state,
|
||||
register_state,
|
||||
)
|
||||
@@ -118,7 +114,6 @@ async fn process_command(
|
||||
"save" => {
|
||||
let outcome = save(
|
||||
app_state,
|
||||
form_state,
|
||||
grpc_client,
|
||||
).await?;
|
||||
let message = match outcome {
|
||||
@@ -131,7 +126,7 @@ async fn process_command(
|
||||
},
|
||||
"revert" => {
|
||||
let message = revert(
|
||||
form_state,
|
||||
app_state,
|
||||
grpc_client,
|
||||
).await?;
|
||||
command_input.clear();
|
||||
|
||||
Reference in New Issue
Block a user