diff --git a/Cargo.lock b/Cargo.lock index 4241010..64064d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -709,7 +709,7 @@ dependencies = [ [[package]] name = "pp" -version = "0.2.0-PREVIEW" +version = "0.2.0" dependencies = [ "ansi_term", "chrono", diff --git a/Cargo.toml b/Cargo.toml index c1c1e08..9715458 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pp" -version = "0.2.0-PREVIEW" +version = "0.2.0" edition = "2024" [dependencies] diff --git a/src/tui/mode_monitoring.rs b/src/tui/mode_monitoring.rs index cf9de00..7e3dcf2 100644 --- a/src/tui/mode_monitoring.rs +++ b/src/tui/mode_monitoring.rs @@ -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 or q to exit | Press d to delete host | Press a to add host"; + let footer_text = "Press or q to exit"; +// let footer_text = "Press 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); + // } _ => {} } }