commented out glue code that isn't public build ready
This commit is contained in:
@@ -100,7 +100,8 @@ impl RatatuiMonitoringMode {
|
||||
// frame.render_widget(table, layouts[0]);
|
||||
frame.render_stateful_widget(table, layouts[0], &mut make_state(state.selected_host));
|
||||
|
||||
let footer_text = "Press <ESC> or q to exit | Press d to delete host | Press a to add host";
|
||||
let footer_text = "Press <ESC> or q to exit";
|
||||
// let footer_text = "Press <ESC> or q to exit | Press d to delete host | Press a to add host";
|
||||
|
||||
let mut list_items = vec![];
|
||||
for entry in state.get_log_entries(10) {
|
||||
@@ -113,8 +114,8 @@ impl RatatuiMonitoringMode {
|
||||
Style::default()
|
||||
.fg(Color::Yellow)
|
||||
.add_modifier(Modifier::BOLD),
|
||||
)
|
||||
.highlight_symbol(">> ");
|
||||
);
|
||||
// .highlight_symbol(">> ");
|
||||
|
||||
let mut list_state = ListState::default();
|
||||
list_state.select(Some(0));
|
||||
@@ -151,12 +152,12 @@ impl RatatuiMonitoringMode {
|
||||
(_, KeyCode::Esc) | (_, KeyCode::Char('q')) | (_, KeyCode::Char('Q')) => {
|
||||
app.set_screen(Exiting);
|
||||
}
|
||||
(_, KeyCode::Char('e')) | (_, KeyCode::Char('E')) => {
|
||||
app.set_screen(Editing);
|
||||
}
|
||||
(_, KeyCode::Char('d')) | (_, KeyCode::Char('D')) => {
|
||||
app.set_screen(Deleting);
|
||||
}
|
||||
// (_, KeyCode::Char('e')) | (_, KeyCode::Char('E')) => {
|
||||
// app.set_screen(Editing);
|
||||
// }
|
||||
// (_, KeyCode::Char('d')) | (_, KeyCode::Char('D')) => {
|
||||
// app.set_screen(Deleting);
|
||||
// }
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user