Updated UI to have contextual help with tables so the UI doesn't feel so crowded
This commit is contained in:
@@ -296,6 +296,7 @@ pub struct TabRoute {
|
||||
pub title: String,
|
||||
pub route: Route,
|
||||
pub help: String,
|
||||
pub contextual_help: Option<String>,
|
||||
}
|
||||
|
||||
pub struct TabState {
|
||||
@@ -321,6 +322,10 @@ impl TabState {
|
||||
self.tabs[self.index].help.clone()
|
||||
}
|
||||
|
||||
pub fn get_active_tab_contextual_help(&self) -> Option<String> {
|
||||
self.tabs[self.index].contextual_help.clone()
|
||||
}
|
||||
|
||||
pub fn next(&mut self) {
|
||||
self.index = (self.index + 1) % self.tabs.len();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user