feat(readarr): add the root folders UI
Renders the root folders table, the delete prompt and the add root folder modal. The modal conveys its current step purely through styling, which rendered output discards, so the step highlights are computed by a separate function whose branches are asserted directly.
This commit is contained in:
39 files changed
+2193
-3
No files matched your search
@@ -24,6 +24,7 @@ use super::{
|
||||
};
|
||||
use crate::ui::readarr_ui::blocklist::BlocklistUi;
|
||||
use crate::ui::readarr_ui::downloads::DownloadsUi;
|
||||
use crate::ui::readarr_ui::root_folders::RootFoldersUi;
|
||||
use crate::ui::utils::{extract_monitored_disk_space_vec, extract_monitored_root_folders};
|
||||
use crate::{
|
||||
app::App,
|
||||
@@ -42,6 +43,7 @@ mod downloads;
|
||||
mod history;
|
||||
mod library;
|
||||
mod readarr_ui_utils;
|
||||
mod root_folders;
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "readarr_ui_tests.rs"]
|
||||
@@ -63,6 +65,7 @@ impl DrawUi for ReadarrUi {
|
||||
_ if DownloadsUi::accepts(route) => DownloadsUi::draw(f, app, content_area),
|
||||
_ if BlocklistUi::accepts(route) => BlocklistUi::draw(f, app, content_area),
|
||||
_ if HistoryUi::accepts(route) => HistoryUi::draw(f, app, content_area),
|
||||
_ if RootFoldersUi::accepts(route) => RootFoldersUi::draw(f, app, content_area),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user