minor changes
This commit is contained in:
@@ -42,7 +42,6 @@ pub async fn save(
|
||||
}
|
||||
|
||||
/// Reverts the login form fields to empty and returns to the previous screen (Intro).
|
||||
/// This function is now named 'revert' to match the 'form' counterpart.
|
||||
pub async fn revert(
|
||||
auth_state: &mut AuthState,
|
||||
app_state: &mut AppState,
|
||||
@@ -53,9 +52,9 @@ pub async fn revert(
|
||||
auth_state.error_message = None; // Clear any previous error
|
||||
auth_state.set_has_unsaved_changes(false); // Fields are cleared, no unsaved changes
|
||||
|
||||
// Update app state to hide login and show the previous screen (Intro)
|
||||
app_state.ui.show_login = false;
|
||||
app_state.ui.show_intro = true; // Assuming Intro is the screen before login
|
||||
// TODO REDIRECT is now disabled
|
||||
// app_state.ui.show_login = false;
|
||||
// app_state.ui.show_intro = true;
|
||||
|
||||
"Login reverted".to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user