diff --git a/client/src/components/intro/intro.rs b/client/src/components/intro/intro.rs index 3082632..c7104e7 100644 --- a/client/src/components/intro/intro.rs +++ b/client/src/components/intro/intro.rs @@ -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 { _ => {} } } + } diff --git a/client/src/ui/handlers/ui.rs b/client/src/ui/handlers/ui.rs index c75767f..50ff2cc 100644 --- a/client/src/ui/handlers/ui.rs +++ b/client/src/ui/handlers/ui.rs @@ -30,13 +30,6 @@ pub async fn run_ui() -> Result<(), Box> { 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?;