admin page is now featured

This commit is contained in:
Priec
2025-08-27 16:32:20 +02:00
parent cfe4903c79
commit a794f22366
9 changed files with 6 additions and 686 deletions

View File

@@ -1,6 +1,3 @@
// src/tui/functions.rs
pub mod admin;
pub mod common;
pub use admin::*;

View File

@@ -1,11 +0,0 @@
use crate::state::app::state::AppState;
use crate::pages::admin::AdminState;
pub fn handle_admin_selection(app_state: &mut AppState, admin_state: &AdminState) {
let profiles = &app_state.profile_tree.profiles;
if let Some(selected_index) = admin_state.get_selected_index() {
if let Some(profile) = profiles.get(selected_index) {
app_state.selected_profile = Some(profile.name.clone());
}
}
}