commented out glue code that isn't public build ready

This commit is contained in:
Trevor Merritt 2025-04-28 13:51:25 -04:00
parent 7d830c4e3b
commit f5fa9877b3
3 changed files with 12 additions and 11 deletions

2
Cargo.lock generated
View File

@ -709,7 +709,7 @@ dependencies = [
[[package]]
name = "pp"
version = "0.2.0-PREVIEW"
version = "0.2.0"
dependencies = [
"ansi_term",
"chrono",

View File

@ -1,6 +1,6 @@
[package]
name = "pp"
version = "0.2.0-PREVIEW"
version = "0.2.0"
edition = "2024"
[dependencies]

View File

@ -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);
// }
_ => {}
}
}