mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
New: Mass Editor is now part of series list
This commit is contained in:
committed by
Mark McDowall
parent
815a16d5cf
commit
a731d24e23
@@ -59,6 +59,7 @@ function SeriesIndexRow(props: SeriesIndexRowProps) {
|
||||
previousAiring,
|
||||
added,
|
||||
statistics = {},
|
||||
seasonFolder,
|
||||
images,
|
||||
seriesType,
|
||||
network,
|
||||
@@ -129,7 +130,7 @@ function SeriesIndexRow(props: SeriesIndexRowProps) {
|
||||
setIsDeleteSeriesModalOpen(false);
|
||||
}, [setIsDeleteSeriesModalOpen]);
|
||||
|
||||
const onUseSceneNumberingChange = useCallback(() => {
|
||||
const checkInputCallback = useCallback(() => {
|
||||
// Mock handler to satisfy `onChange` being required for `CheckInput`.
|
||||
}, []);
|
||||
|
||||
@@ -280,6 +281,19 @@ function SeriesIndexRow(props: SeriesIndexRowProps) {
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'seasonFolder') {
|
||||
return (
|
||||
<VirtualTableRowCell key={name} className={styles[name]}>
|
||||
<CheckInput
|
||||
name="seasonFolder"
|
||||
value={seasonFolder}
|
||||
isDisabled={true}
|
||||
onChange={checkInputCallback}
|
||||
/>
|
||||
</VirtualTableRowCell>
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'episodeProgress') {
|
||||
const progress = episodeCount
|
||||
? (episodeFileCount / episodeCount) * 100
|
||||
@@ -413,7 +427,7 @@ function SeriesIndexRow(props: SeriesIndexRowProps) {
|
||||
name="useSceneNumbering"
|
||||
value={useSceneNumbering}
|
||||
isDisabled={true}
|
||||
onChange={onUseSceneNumberingChange}
|
||||
onChange={checkInputCallback}
|
||||
/>
|
||||
</VirtualTableRowCell>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user