we compiled
This commit is contained in:
@@ -67,4 +67,21 @@ impl CanvasState for AuthState {
|
||||
fn fields(&self) -> Vec<&str> {
|
||||
vec!["Username/Email", "Password"]
|
||||
}
|
||||
|
||||
// --- Implement the setter methods ---
|
||||
fn set_current_field(&mut self, index: usize) {
|
||||
// AuthState only has 2 fields (0 and 1)
|
||||
if index < 2 {
|
||||
self.current_field = index;
|
||||
}
|
||||
}
|
||||
|
||||
fn set_current_cursor_pos(&mut self, pos: usize) {
|
||||
// Optional: Add validation based on current input length if needed
|
||||
self.current_cursor_pos = pos;
|
||||
}
|
||||
|
||||
fn set_has_unsaved_changes(&mut self, _changed: bool) {
|
||||
// Auth form doesn't track unsaved changes, so do nothing
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user