nothing is fixed, it doesnt work, i cant see a login page

This commit is contained in:
filipriec
2025-03-25 23:23:47 +01:00
parent aab11c1cba
commit ad64df2ec3
2 changed files with 5 additions and 8 deletions

View File

@@ -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 {
_ => {}
}
}
}

View File

@@ -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?;