feat(handler): History tab support
This commit is contained in:
@@ -238,7 +238,7 @@ pub enum ActiveSonarrBlock {
|
||||
FilterSeriesHistory,
|
||||
FilterSeriesHistoryError,
|
||||
History,
|
||||
HistoryDetails,
|
||||
HistoryItemDetails,
|
||||
HistorySortPrompt,
|
||||
Indexers,
|
||||
IndexerSettingsConfirmPrompt,
|
||||
@@ -252,8 +252,6 @@ pub enum ActiveSonarrBlock {
|
||||
ManualSeasonSearch,
|
||||
ManualSeasonSearchConfirmPrompt,
|
||||
ManualSeasonSearchSortPrompt,
|
||||
MarkHistoryItemAsFailedConfirmPrompt,
|
||||
MarkHistoryItemAsFailedPrompt,
|
||||
RootFolders,
|
||||
SearchEpisodes,
|
||||
SearchEpisodesError,
|
||||
@@ -372,6 +370,16 @@ pub const DELETE_SERIES_SELECTION_BLOCKS: &[&[ActiveSonarrBlock]] = &[
|
||||
&[ActiveSonarrBlock::DeleteSeriesConfirmPrompt],
|
||||
];
|
||||
|
||||
pub static HISTORY_BLOCKS: [ActiveSonarrBlock; 7] = [
|
||||
ActiveSonarrBlock::History,
|
||||
ActiveSonarrBlock::HistoryItemDetails,
|
||||
ActiveSonarrBlock::HistorySortPrompt,
|
||||
ActiveSonarrBlock::FilterHistory,
|
||||
ActiveSonarrBlock::FilterHistoryError,
|
||||
ActiveSonarrBlock::SearchHistory,
|
||||
ActiveSonarrBlock::SearchHistoryError,
|
||||
];
|
||||
|
||||
impl From<ActiveSonarrBlock> for Route {
|
||||
fn from(active_sonarr_block: ActiveSonarrBlock) -> Route {
|
||||
Route::Sonarr(active_sonarr_block, None)
|
||||
|
||||
Reference in New Issue
Block a user