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