Fixed: Specials not allowing multi-episode select in Manual Import
Closes #6429
This commit is contained in:
parent
d9acbf5682
commit
e9f0c96249
|
@ -298,14 +298,20 @@ function InteractiveImportModalContent(
|
||||||
return acc;
|
return acc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const lastSelectedSeason = acc.lastSelectedSeason;
|
||||||
|
|
||||||
acc.seasonSelectDisabled ||= !item.series;
|
acc.seasonSelectDisabled ||= !item.series;
|
||||||
acc.episodeSelectDisabled ||= !item.seasonNumber;
|
acc.episodeSelectDisabled ||=
|
||||||
|
item.seasonNumber === undefined ||
|
||||||
|
(lastSelectedSeason >= 0 && item.seasonNumber !== lastSelectedSeason);
|
||||||
|
acc.lastSelectedSeason = item.seasonNumber ?? -1;
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
seasonSelectDisabled: false,
|
seasonSelectDisabled: false,
|
||||||
episodeSelectDisabled: false,
|
episodeSelectDisabled: false,
|
||||||
|
lastSelectedSeason: -1,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue