feat: Implemented the Lidarr History tab and CLI support
This commit is contained in:
@@ -5,6 +5,7 @@ use crate::ui::ui_test_utils::test_utils::Utc;
|
||||
use chrono::Duration;
|
||||
#[cfg(not(test))]
|
||||
use chrono::Utc;
|
||||
use history::HistoryUi;
|
||||
use library::LibraryUi;
|
||||
use ratatui::{
|
||||
Frame,
|
||||
@@ -35,7 +36,9 @@ use super::{
|
||||
widgets::loading_block::LoadingBlock,
|
||||
};
|
||||
|
||||
mod history;
|
||||
mod library;
|
||||
mod lidarr_ui_utils;
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "lidarr_ui_tests.rs"]
|
||||
@@ -54,6 +57,7 @@ impl DrawUi for LidarrUi {
|
||||
|
||||
match route {
|
||||
_ if LibraryUi::accepts(route) => LibraryUi::draw(f, app, content_area),
|
||||
_ if HistoryUi::accepts(route) => HistoryUi::draw(f, app, content_area),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user