Added error windows with scrolling text, and a colorized Radarr logo. Also added header row with header tabs

This commit is contained in:
2023-08-08 10:50:04 -06:00
parent daf08c10cc
commit 44db47f8ee
8 changed files with 154 additions and 24 deletions
+7
View File
@@ -9,5 +9,12 @@ pub async fn handle_key_events(key: Key, app: &mut App) {
Route::Radarr(active_radarr_block) => {
handle_radarr_key_events(key, app, active_radarr_block).await
}
_ => (),
}
}
pub async fn handle_clear_errors(app: &mut App) {
if !app.error.is_empty() {
app.error = String::default();
}
}
+2 -1
View File
@@ -1,6 +1,7 @@
use crate::app::key_binding::DEFAULT_KEYBINDINGS;
use crate::app::models::{Scrollable, ScrollableText, StatefulTable};
use crate::app::radarr::ActiveRadarrBlock;
use crate::handlers::handle_clear_errors;
use crate::{App, Key};
pub async fn handle_radarr_key_events(
@@ -97,6 +98,6 @@ async fn handle_esc(app: &mut App, active_radarr_block: ActiveRadarrBlock) {
app.pop_navigation_stack();
app.data.radarr_data.reset_movie_info_tab();
}
_ => (),
_ => handle_clear_errors(app).await,
}
}