feat: Support for multiple servarr definitions - no tests [skip ci]
This commit is contained in:
@@ -121,86 +121,99 @@ impl<'a> Default for RadarrData<'a> {
|
||||
add_list_exclusion: false,
|
||||
main_tabs: TabState::new(vec![
|
||||
TabRoute {
|
||||
title: "Library",
|
||||
title: "Library".to_string(),
|
||||
route: ActiveRadarrBlock::Movies.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&LIBRARY_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Collections",
|
||||
title: "Collections".to_string(),
|
||||
route: ActiveRadarrBlock::Collections.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&COLLECTIONS_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Downloads",
|
||||
title: "Downloads".to_string(),
|
||||
route: ActiveRadarrBlock::Downloads.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&DOWNLOADS_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Blocklist",
|
||||
title: "Blocklist".to_string(),
|
||||
route: ActiveRadarrBlock::Blocklist.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&BLOCKLIST_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Root Folders",
|
||||
title: "Root Folders".to_string(),
|
||||
route: ActiveRadarrBlock::RootFolders.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&ROOT_FOLDERS_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Indexers",
|
||||
title: "Indexers".to_string(),
|
||||
route: ActiveRadarrBlock::Indexers.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&INDEXERS_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "System",
|
||||
title: "System".to_string(),
|
||||
route: ActiveRadarrBlock::System.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&SYSTEM_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
]),
|
||||
movie_info_tabs: TabState::new(vec![
|
||||
TabRoute {
|
||||
title: "Details",
|
||||
title: "Details".to_string(),
|
||||
route: ActiveRadarrBlock::MovieDetails.into(),
|
||||
help: build_context_clue_string(&MOVIE_DETAILS_CONTEXT_CLUES),
|
||||
contextual_help: None,
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "History",
|
||||
title: "History".to_string(),
|
||||
route: ActiveRadarrBlock::MovieHistory.into(),
|
||||
help: build_context_clue_string(&MOVIE_DETAILS_CONTEXT_CLUES),
|
||||
contextual_help: None,
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "File",
|
||||
title: "File".to_string(),
|
||||
route: ActiveRadarrBlock::FileInfo.into(),
|
||||
help: build_context_clue_string(&MOVIE_DETAILS_CONTEXT_CLUES),
|
||||
contextual_help: None,
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Cast",
|
||||
title: "Cast".to_string(),
|
||||
route: ActiveRadarrBlock::Cast.into(),
|
||||
help: build_context_clue_string(&MOVIE_DETAILS_CONTEXT_CLUES),
|
||||
contextual_help: None,
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Crew",
|
||||
title: "Crew".to_string(),
|
||||
route: ActiveRadarrBlock::Crew.into(),
|
||||
help: build_context_clue_string(&MOVIE_DETAILS_CONTEXT_CLUES),
|
||||
contextual_help: None,
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Manual Search",
|
||||
title: "Manual Search".to_string(),
|
||||
route: ActiveRadarrBlock::ManualSearch.into(),
|
||||
help: build_context_clue_string(&MANUAL_MOVIE_SEARCH_CONTEXT_CLUES),
|
||||
contextual_help: Some(build_context_clue_string(
|
||||
&MANUAL_MOVIE_SEARCH_CONTEXTUAL_CONTEXT_CLUES,
|
||||
)),
|
||||
config: None,
|
||||
},
|
||||
]),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user