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

@@ -7,6 +7,7 @@ pub enum AppView {
Login,
Register,
Admin,
AddTable,
Form(String),
Scratch,
}
@@ -18,7 +19,8 @@ impl AppView {
AppView::Intro => "Intro",
AppView::Login => "Login",
AppView::Register => "Register",
AppView::Admin => "Admin Panel",
AppView::Admin => "Admin_panel",
AppView::AddTable => "Add_table",
AppView::Form(name) => name.as_str(),
AppView::Scratch => "*scratch*",
}

View File

@@ -19,6 +19,7 @@ pub struct UiState {
pub show_buffer_list: bool,
pub show_intro: bool,
pub show_admin: bool,
pub show_add_table: bool,
pub show_form: bool,
pub show_login: bool,
pub show_register: bool,
@@ -134,6 +135,7 @@ impl Default for UiState {
show_sidebar: false,
show_intro: true,
show_admin: false,
show_add_table: false,
show_form: false,
show_login: false,
show_register: false,