buttons are now added in the admin panel
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user