|
|
@ -49,7 +49,7 @@ class CalendarEvent extends Component {
|
|
|
|
foreignAlbumId,
|
|
|
|
foreignAlbumId,
|
|
|
|
releaseDate,
|
|
|
|
releaseDate,
|
|
|
|
monitored,
|
|
|
|
monitored,
|
|
|
|
// hasFile,
|
|
|
|
statistics,
|
|
|
|
grabbed,
|
|
|
|
grabbed,
|
|
|
|
queueItem,
|
|
|
|
queueItem,
|
|
|
|
// timeFormat,
|
|
|
|
// timeFormat,
|
|
|
@ -64,7 +64,7 @@ class CalendarEvent extends Component {
|
|
|
|
// const endTime = startTime.add(artist.runtime, 'minutes');
|
|
|
|
// const endTime = startTime.add(artist.runtime, 'minutes');
|
|
|
|
const downloading = !!(queueItem || grabbed);
|
|
|
|
const downloading = !!(queueItem || grabbed);
|
|
|
|
const isMonitored = artist.monitored && monitored;
|
|
|
|
const isMonitored = artist.monitored && monitored;
|
|
|
|
const statusStyle = getStatusStyle(id, downloading, startTime, isMonitored);
|
|
|
|
const statusStyle = getStatusStyle(id, downloading, startTime, isMonitored, statistics.percentOfTracks);
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -121,12 +121,12 @@ CalendarEvent.propTypes = {
|
|
|
|
artist: PropTypes.object.isRequired,
|
|
|
|
artist: PropTypes.object.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
foreignAlbumId: PropTypes.string.isRequired,
|
|
|
|
foreignAlbumId: PropTypes.string.isRequired,
|
|
|
|
|
|
|
|
statistics: PropTypes.object.isRequired,
|
|
|
|
// seasonNumber: PropTypes.number.isRequired,
|
|
|
|
// seasonNumber: PropTypes.number.isRequired,
|
|
|
|
// episodeNumber: PropTypes.number.isRequired,
|
|
|
|
// episodeNumber: PropTypes.number.isRequired,
|
|
|
|
// absoluteEpisodeNumber: PropTypes.number,
|
|
|
|
// absoluteEpisodeNumber: PropTypes.number,
|
|
|
|
releaseDate: PropTypes.string.isRequired,
|
|
|
|
releaseDate: PropTypes.string.isRequired,
|
|
|
|
monitored: PropTypes.bool.isRequired,
|
|
|
|
monitored: PropTypes.bool.isRequired,
|
|
|
|
// hasFile: PropTypes.bool.isRequired,
|
|
|
|
|
|
|
|
grabbed: PropTypes.bool,
|
|
|
|
grabbed: PropTypes.bool,
|
|
|
|
queueItem: PropTypes.object,
|
|
|
|
queueItem: PropTypes.object,
|
|
|
|
// timeFormat: PropTypes.string.isRequired,
|
|
|
|
// timeFormat: PropTypes.string.isRequired,
|
|
|
|