login and register are now havving own handlers and loaders, moving logic out of event.rs and ui.rs
This commit is contained in:
@@ -127,6 +127,8 @@ impl DataProvider for LoginState {
|
||||
pub struct LoginFormState {
|
||||
pub state: LoginState,
|
||||
pub editor: FormEditor<LoginState>,
|
||||
pub focus_outside_canvas: bool,
|
||||
pub focused_button_index: usize,
|
||||
}
|
||||
|
||||
// manual debug because FormEditor doesnt implement debug
|
||||
@@ -150,7 +152,12 @@ impl LoginFormState {
|
||||
pub fn new() -> Self {
|
||||
let state = LoginState::default();
|
||||
let editor = FormEditor::new(state.clone());
|
||||
Self { state, editor }
|
||||
Self {
|
||||
state,
|
||||
editor,
|
||||
focus_outside_canvas: false,
|
||||
focused_button_index: 0,
|
||||
}
|
||||
}
|
||||
|
||||
// === Delegates to LoginState fields ===
|
||||
|
||||
Reference in New Issue
Block a user