feat(ui): Downloads tab support

This commit is contained in:
Dark-Alex-17 committed 2024-12-02 15:57:48 -07:00
1 parent f338dfcb12
commit f0d8555a8a
7 files changed
+213 -27

No files matched your search

+3
View File
@@ -1,6 +1,7 @@
use std::{cmp, iter};
use chrono::{Duration, Utc};
use downloads::DownloadsUi;
use library::LibraryUi;
use ratatui::{
layout::{Constraint, Layout, Rect},
@@ -32,6 +33,7 @@ use super::{
DrawUi,
};
mod downloads;
mod library;
#[cfg(test)]
@@ -51,6 +53,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),
_ => (),
}
}