NEW PAGE ADD TABLE
This commit is contained in:
@@ -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*",
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user