nothing is fixed, it doesnt work, i cant see a login page
This commit is contained in:
@@ -122,7 +122,10 @@ impl IntroState {
|
||||
pub fn handle_selection(&self, app_state: &mut crate::state::state::AppState) {
|
||||
match self.selected_option {
|
||||
0 => { /* Continue logic */ }
|
||||
1 => { /* Admin logic */ }
|
||||
1 => {
|
||||
app_state.ui.show_intro = false;
|
||||
app_state.ui.show_admin = true;
|
||||
}
|
||||
2 => {
|
||||
app_state.ui.show_intro = false;
|
||||
app_state.ui.show_login = true;
|
||||
@@ -130,4 +133,5 @@ impl IntroState {
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -30,13 +30,6 @@ pub async fn run_ui() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let profile_tree = grpc_client.get_profile_tree().await?;
|
||||
app_state.profile_tree = profile_tree;
|
||||
|
||||
// Now create admin panel with profiles from app_state
|
||||
if intro_state.selected_option == 1 {
|
||||
app_state.ui.show_admin = true;
|
||||
app_state.general.selected_item = 0;
|
||||
app_state.general.current_option = 0;
|
||||
}
|
||||
|
||||
// Fetch table structure at startup (one-time)
|
||||
let table_structure = grpc_client.get_table_structure().await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user