admin panel bombarded like never before

This commit is contained in:
filipriec
2025-04-16 12:47:33 +02:00
parent 26b899df16
commit 055b6a0a43
6 changed files with 264 additions and 17 deletions

View File

@@ -98,8 +98,8 @@ fn render_admin_panel_non_admin(
.block(Block::default().title("Profiles"))
.highlight_style(Style::default().bg(theme.highlight).fg(theme.bg));
let mut list_state_clone = admin_state.list_state.clone();
f.render_stateful_widget(list, content_chunks[0], &mut list_state_clone);
let mut profile_list_state_clone = admin_state.profile_list_state.clone();
f.render_stateful_widget(list, content_chunks[0], &mut profile_list_state_clone);
// Profile details - Use selection info from admin_state
if let Some(profile) = admin_state