Re-added xem scene number verification warning to calendar list view as well
This commit is contained in:
parent
77412f2376
commit
0521fc5681
frontend/src/Calendar
|
@ -50,6 +50,7 @@ class AgendaEvent extends Component {
|
|||
absoluteEpisodeNumber,
|
||||
airDateUtc,
|
||||
monitored,
|
||||
unverifiedSceneNumbering,
|
||||
hasFile,
|
||||
grabbed,
|
||||
queueItem,
|
||||
|
@ -70,7 +71,7 @@ class AgendaEvent extends Component {
|
|||
const statusStyle = getStatusStyle(hasFile, downloading, startTime, endTime, isMonitored);
|
||||
const missingAbsoluteNumber = series.seriesType === 'anime' && seasonNumber > 0 && !absoluteEpisodeNumber;
|
||||
const season = series.seasons.find((s) => s.seasonNumber === seasonNumber);
|
||||
const seasonStatistics = season.statistics || {};
|
||||
const seasonStatistics = season?.statistics || {};
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
@ -131,6 +132,16 @@ class AgendaEvent extends Component {
|
|||
/>
|
||||
}
|
||||
|
||||
{
|
||||
unverifiedSceneNumbering && !missingAbsoluteNumber ?
|
||||
<Icon
|
||||
className={styles.statusIcon}
|
||||
name={icons.WARNING}
|
||||
title="Scene number hasn't been verified yet"
|
||||
/> :
|
||||
null
|
||||
}
|
||||
|
||||
{
|
||||
!!queueItem &&
|
||||
<span className={styles.statusIcon}>
|
||||
|
@ -237,6 +248,7 @@ AgendaEvent.propTypes = {
|
|||
absoluteEpisodeNumber: PropTypes.number,
|
||||
airDateUtc: PropTypes.string.isRequired,
|
||||
monitored: PropTypes.bool.isRequired,
|
||||
unverifiedSceneNumbering: PropTypes.bool,
|
||||
hasFile: PropTypes.bool.isRequired,
|
||||
grabbed: PropTypes.bool,
|
||||
queueItem: PropTypes.object,
|
||||
|
|
|
@ -79,7 +79,7 @@ class CalendarEvent extends Component {
|
|||
const statusStyle = getStatusStyle(hasFile, isDownloading, startTime, endTime, isMonitored);
|
||||
const missingAbsoluteNumber = series.seriesType === 'anime' && seasonNumber > 0 && !absoluteEpisodeNumber;
|
||||
const season = series.seasons.find((s) => s.seasonNumber === seasonNumber);
|
||||
const seasonStatistics = season.statistics || {};
|
||||
const seasonStatistics = season?.statistics || {};
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
|
@ -99,16 +99,6 @@ class CalendarEvent extends Component {
|
|||
</div>
|
||||
|
||||
<div className={styles.statusContainer}>
|
||||
{
|
||||
unverifiedSceneNumbering ?
|
||||
<Icon
|
||||
className={styles.statusIcon}
|
||||
name={icons.WARNING}
|
||||
title="Scene number hasn\'t been verified yet."
|
||||
/> :
|
||||
null
|
||||
}
|
||||
|
||||
{
|
||||
missingAbsoluteNumber ?
|
||||
<Icon
|
||||
|
@ -119,6 +109,16 @@ class CalendarEvent extends Component {
|
|||
null
|
||||
}
|
||||
|
||||
{
|
||||
unverifiedSceneNumbering && !missingAbsoluteNumber ?
|
||||
<Icon
|
||||
className={styles.statusIcon}
|
||||
name={icons.WARNING}
|
||||
title="Scene number hasn't been verified yet"
|
||||
/> :
|
||||
null
|
||||
}
|
||||
|
||||
{
|
||||
queueItem ?
|
||||
<span className={styles.statusIcon}>
|
||||
|
@ -255,9 +255,9 @@ CalendarEvent.propTypes = {
|
|||
absoluteEpisodeNumber: PropTypes.number,
|
||||
airDateUtc: PropTypes.string.isRequired,
|
||||
monitored: PropTypes.bool.isRequired,
|
||||
unverifiedSceneNumbering: PropTypes.bool,
|
||||
hasFile: PropTypes.bool.isRequired,
|
||||
grabbed: PropTypes.bool,
|
||||
unverifiedSceneNumbering: PropTypes.bool,
|
||||
queueItem: PropTypes.object,
|
||||
showEpisodeInformation: PropTypes.bool.isRequired,
|
||||
showFinaleIcon: PropTypes.bool.isRequired,
|
||||
|
|
Loading…
Reference in New Issue