removing edit mode from the codebase

This commit is contained in:
filipriec
2025-08-24 15:32:24 +02:00
parent 06cc1663b3
commit 15d9b31cb6
6 changed files with 21 additions and 12 deletions

View File

@@ -72,7 +72,7 @@ impl FormState {
selected_suggestion_index: None,
autocomplete_loading: false,
link_display_map: HashMap::new(),
app_mode: AppMode::Edit,
app_mode: canvas::AppMode::Edit,
}
}

View File

@@ -24,7 +24,7 @@ impl Default for LoginState {
current_cursor_pos: 0,
has_unsaved_changes: false,
login_request_pending: false,
app_mode: AppMode::Edit,
app_mode: canvas::AppMode::Edit,
}
}
}
@@ -32,7 +32,7 @@ impl Default for LoginState {
impl LoginState {
pub fn new() -> Self {
Self {
app_mode: AppMode::Edit,
app_mode: canvas::AppMode::Edit,
..Default::default()
}
}

View File

@@ -24,7 +24,7 @@ pub struct RegisterState {
pub current_field: usize,
pub current_cursor_pos: usize,
pub has_unsaved_changes: bool,
pub app_mode: AppMode,
pub app_mode: canvas::AppMode,
pub role_suggestions: Vec<String>,
pub role_suggestions_active: bool,
}
@@ -41,7 +41,7 @@ impl Default for RegisterState {
current_field: 0,
current_cursor_pos: 0,
has_unsaved_changes: false,
app_mode: AppMode::Edit,
app_mode: canvas::AppMode::Edit,
role_suggestions: AVAILABLE_ROLES.clone(),
role_suggestions_active: false,
}
@@ -51,7 +51,7 @@ impl Default for RegisterState {
impl RegisterState {
pub fn new() -> Self {
Self {
app_mode: AppMode::Edit,
app_mode: canvas::AppMode::Edit,
role_suggestions: AVAILABLE_ROLES.clone(),
role_suggestions_active: false,
..Default::default()