Added field_type to Radarr events to dynamically display fields at runtime. Also updated the keybinding for events in the systems tab to reuse the 'e' key.

This commit is contained in:
2023-08-08 10:50:07 -06:00
parent 72194fe668
commit 52f22312f3
10 changed files with 47 additions and 28 deletions
@@ -962,11 +962,11 @@ mod tests {
}
#[test]
fn test_queue_key() {
fn test_queued_events_key() {
let mut app = App::default();
RadarrHandler::with(
&DEFAULT_KEYBINDINGS.queue.key,
&DEFAULT_KEYBINDINGS.events.key,
&mut app,
&ActiveRadarrBlock::System,
&None,
@@ -975,7 +975,7 @@ mod tests {
assert_eq!(
app.get_current_route(),
&ActiveRadarrBlock::SystemQueue.into()
&ActiveRadarrBlock::SystemQueuedEvents.into()
);
}
@@ -1293,7 +1293,7 @@ mod tests {
ActiveRadarrBlock::System,
ActiveRadarrBlock::SystemLogs,
ActiveRadarrBlock::SystemTasks,
ActiveRadarrBlock::SystemQueue,
ActiveRadarrBlock::SystemQueuedEvents,
ActiveRadarrBlock::SystemUpdates
)]
active_radarr_block: ActiveRadarrBlock,