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