NEW PAGE ADD TABLE

This commit is contained in:
filipriec
2025-04-16 22:07:07 +02:00
parent 93a3c246c6
commit 69953401b1
8 changed files with 51 additions and 6 deletions

View File

@@ -67,6 +67,7 @@ pub async fn run_ui() -> Result<(), Box<dyn std::error::Error>> {
app_state.ui.show_login = false;
app_state.ui.show_register = false;
app_state.ui.show_admin = false;
app_state.ui.show_add_table = false;
app_state.ui.show_form = false;
match active_view {
AppView::Intro => app_state.ui.show_intro = true,
@@ -79,6 +80,7 @@ pub async fn run_ui() -> Result<(), Box<dyn std::error::Error>> {
.collect();
admin_state.set_profiles(profile_names);
}
AppView::AddTable => app_state.ui.show_add_table = true,
AppView::Form(_) => app_state.ui.show_form = true,
AppView::Scratch => {} // Or show a scratchpad component
}