buttons are now added in the admin panel

This commit is contained in:
filipriec
2025-04-16 21:43:21 +02:00
parent 6505e18b0b
commit 93a3c246c6
3 changed files with 86 additions and 44 deletions

View File

@@ -8,6 +8,9 @@ pub enum AdminFocus {
#[default] // Default focus is on the profiles list
Profiles,
Tables,
Button1,
Button2,
Button3,
}
#[derive(Default, Clone, Debug)]
@@ -169,14 +172,5 @@ impl AdminState {
};
self.select_table(Some(i));
}
/// Toggles focus between the profile list and the table list.
pub fn toggle_focus(&mut self) {
self.current_focus = match self.current_focus {
AdminFocus::Profiles => AdminFocus::Tables,
AdminFocus::Tables => AdminFocus::Profiles,
};
}
}