mirror of https://github.com/Sonarr/Sonarr
Fixed: Grouped items on calendar ignoring series monitored state
Closes #5117
This commit is contained in:
parent
09404bacf3
commit
4b5c8a815f
|
@ -11,7 +11,7 @@ import formatTime from 'Utilities/Date/formatTime';
|
|||
import padNumber from 'Utilities/Number/padNumber';
|
||||
import styles from './CalendarEventGroup.css';
|
||||
|
||||
function getEventsInfo(events) {
|
||||
function getEventsInfo(series, events) {
|
||||
let files = 0;
|
||||
let queued = 0;
|
||||
let monitored = 0;
|
||||
|
@ -26,7 +26,7 @@ function getEventsInfo(events) {
|
|||
queued++;
|
||||
}
|
||||
|
||||
if (event.monitored) {
|
||||
if (series.monitored && event.monitored) {
|
||||
monitored++;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ class CalendarEventGroup extends Component {
|
|||
anyQueued,
|
||||
anyMonitored,
|
||||
allAbsoluteEpisodeNumbers
|
||||
} = getEventsInfo(events);
|
||||
} = getEventsInfo(series, events);
|
||||
const anyDownloading = isDownloading || anyQueued;
|
||||
const firstEpisode = events[0];
|
||||
const lastEpisode = events[events.length -1];
|
||||
|
|
Loading…
Reference in New Issue