register on the way

This commit is contained in:
filipriec
2025-04-10 18:50:54 +02:00
parent 4e01740a61
commit b51e76e366
6 changed files with 276 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ use std::env;
use common::proto::multieko2::table_definition::ProfileTreeResponse;
use crate::components::IntroState;
use crate::modes::handlers::mode_manager::AppMode;
use crate::state::pages::auth::{AuthState, RegisterState};
use crate::ui::handlers::context::DialogPurpose;
pub struct DialogState {
@@ -21,9 +22,10 @@ pub struct UiState {
pub show_admin: bool,
pub show_form: bool,
pub show_login: bool,
pub show_register: bool,
pub intro_state: IntroState,
pub focus_outside_canvas: bool,
pub dialog: DialogState, // Add dialog state here
pub dialog: DialogState,
}
pub struct GeneralState {
@@ -144,6 +146,7 @@ impl Default for UiState {
show_admin: false,
show_form: false,
show_login: false,
show_register: false,
intro_state: IntroState::new(),
focus_outside_canvas: false,
dialog: DialogState::default(),