minor changes

This commit is contained in:
filipriec
2025-04-05 17:21:07 +02:00
parent 7fd1c1e41d
commit 1c662888c6
3 changed files with 7 additions and 8 deletions

6
Cargo.lock generated
View File

@@ -421,7 +421,7 @@ dependencies = [
[[package]] [[package]]
name = "client" name = "client"
version = "0.2.5" version = "0.3.0"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"common", "common",
@@ -458,7 +458,7 @@ dependencies = [
[[package]] [[package]]
name = "common" name = "common"
version = "0.2.5" version = "0.3.0"
dependencies = [ dependencies = [
"prost", "prost",
"serde", "serde",
@@ -2589,7 +2589,7 @@ dependencies = [
[[package]] [[package]]
name = "server" name = "server"
version = "0.2.5" version = "0.3.0"
dependencies = [ dependencies = [
"bcrypt", "bcrypt",
"chrono", "chrono",

View File

@@ -5,7 +5,7 @@ resolver = "2"
[workspace.package] [workspace.package]
# TODO: idk how to do the name, fix later # TODO: idk how to do the name, fix later
# name = "Multieko2" # name = "Multieko2"
version = "0.2.5" version = "0.3.0"
edition = "2021" edition = "2021"
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
authors = ["Filip Priečinský <filippriec@gmail.com>"] authors = ["Filip Priečinský <filippriec@gmail.com>"]

View File

@@ -42,7 +42,6 @@ pub async fn save(
} }
/// Reverts the login form fields to empty and returns to the previous screen (Intro). /// 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( pub async fn revert(
auth_state: &mut AuthState, auth_state: &mut AuthState,
app_state: &mut AppState, app_state: &mut AppState,
@@ -53,9 +52,9 @@ pub async fn revert(
auth_state.error_message = None; // Clear any previous error auth_state.error_message = None; // Clear any previous error
auth_state.set_has_unsaved_changes(false); // Fields are cleared, no unsaved changes 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) // TODO REDIRECT is now disabled
app_state.ui.show_login = false; // app_state.ui.show_login = false;
app_state.ui.show_intro = true; // Assuming Intro is the screen before login // app_state.ui.show_intro = true;
"Login reverted".to_string() "Login reverted".to_string()
} }