feat: Support for multiple servarr definitions - no tests [skip ci]
This commit is contained in:
@@ -128,60 +128,69 @@ impl<'a> Default for SonarrData<'a> {
|
||||
version: String::new(),
|
||||
main_tabs: TabState::new(vec![
|
||||
TabRoute {
|
||||
title: "Library",
|
||||
title: "Library".to_string(),
|
||||
route: ActiveSonarrBlock::Series.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&SERIES_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Downloads",
|
||||
title: "Downloads".to_string(),
|
||||
route: ActiveSonarrBlock::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: ActiveSonarrBlock::Blocklist.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&BLOCKLIST_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "History",
|
||||
title: "History".to_string(),
|
||||
route: ActiveSonarrBlock::History.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&HISTORY_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "Root Folders",
|
||||
title: "Root Folders".to_string(),
|
||||
route: ActiveSonarrBlock::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: ActiveSonarrBlock::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: ActiveSonarrBlock::System.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&SYSTEM_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
]),
|
||||
series_info_tabs: TabState::new(vec![
|
||||
TabRoute {
|
||||
title: "Seasons",
|
||||
title: "Seasons".to_string(),
|
||||
route: ActiveSonarrBlock::SeriesDetails.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&SERIES_DETAILS_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
TabRoute {
|
||||
title: "History",
|
||||
title: "History".to_string(),
|
||||
route: ActiveSonarrBlock::SeriesHistory.into(),
|
||||
help: String::new(),
|
||||
contextual_help: Some(build_context_clue_string(&SERIES_HISTORY_CONTEXT_CLUES)),
|
||||
config: None,
|
||||
},
|
||||
]),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user