feat(ui): Blocklist UI support

This commit is contained in:
2024-12-02 16:54:27 -07:00
parent 3186fb42e7
commit 1c6e798632
3 changed files with 199 additions and 0 deletions
+3
View File
@@ -1,5 +1,6 @@
use std::{cmp, iter};
use blocklist::BlocklistUi;
use chrono::{Duration, Utc};
use downloads::DownloadsUi;
use library::LibraryUi;
@@ -33,6 +34,7 @@ use super::{
DrawUi,
};
mod blocklist;
mod downloads;
mod library;
@@ -54,6 +56,7 @@ impl DrawUi for SonarrUi {
match route {
_ if LibraryUi::accepts(route) => LibraryUi::draw(f, app, content_area),
_ if DownloadsUi::accepts(route) => DownloadsUi::draw(f, app, content_area),
_ if BlocklistUi::accepts(route) => BlocklistUi::draw(f, app, content_area),
_ => (),
}
}