separate page

This commit is contained in:
filipriec
2025-08-31 21:25:43 +02:00
parent 4e041f36ce
commit 5b42da8290
4 changed files with 76 additions and 48 deletions

View File

@@ -358,6 +358,24 @@ impl AddLogicFormState {
}
}
pub fn new_with_table(
editor_config: &EditorConfig,
profile_name: String,
table_id: Option<i64>,
table_name: String,
) -> Self {
let mut state = AddLogicState::new(editor_config);
state.profile_name = profile_name;
state.selected_table_id = table_id;
state.selected_table_name = Some(table_name);
let editor = FormEditor::new(state.clone());
Self {
state,
editor,
focus_outside_canvas: false,
}
}
pub fn from_state(state: AddLogicState) -> Self {
let editor = FormEditor::new(state.clone());
Self {