admin page is now featured
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
// src/tui/functions.rs
|
||||
|
||||
pub mod admin;
|
||||
pub mod common;
|
||||
|
||||
pub use admin::*;
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user