diff --git a/frontend/src/Calendar/Agenda/AgendaEvent.js b/frontend/src/Calendar/Agenda/AgendaEvent.js index ab8b3020a..c869b096c 100644 --- a/frontend/src/Calendar/Agenda/AgendaEvent.js +++ b/frontend/src/Calendar/Agenda/AgendaEvent.js @@ -41,9 +41,11 @@ class AgendaEvent extends Component { id, artist, title, + foreignAlbumId, + albumType, releaseDate, monitored, - hasFile, + // hasFile, grabbed, queueItem, showDate, @@ -55,7 +57,7 @@ class AgendaEvent extends Component { // const endTime = startTime.add(artist.runtime, 'minutes'); const downloading = !!(queueItem || grabbed); const isMonitored = artist.monitored && monitored; - const statusStyle = getStatusStyle(id, hasFile, downloading, startTime, isMonitored); + const statusStyle = getStatusStyle(id, downloading, startTime, isMonitored); return (
@@ -83,13 +85,17 @@ class AgendaEvent extends Component {
- {artist.artistName} + + {artist.artistName} +
-
- {title} + + {title} +
{ @@ -116,9 +122,11 @@ AgendaEvent.propTypes = { id: PropTypes.number.isRequired, artist: PropTypes.object.isRequired, title: PropTypes.string.isRequired, + foreignAlbumId: PropTypes.string.isRequired, + albumType: PropTypes.string.isRequired, releaseDate: PropTypes.string.isRequired, monitored: PropTypes.bool.isRequired, - hasFile: PropTypes.bool.isRequired, + // hasFile: PropTypes.bool.isRequired, grabbed: PropTypes.bool, queueItem: PropTypes.object, showDate: PropTypes.bool.isRequired, diff --git a/frontend/src/Calendar/Events/CalendarEvent.js b/frontend/src/Calendar/Events/CalendarEvent.js index 7258c4393..7a66ae406 100644 --- a/frontend/src/Calendar/Events/CalendarEvent.js +++ b/frontend/src/Calendar/Events/CalendarEvent.js @@ -46,9 +46,7 @@ class CalendarEvent extends Component { id, artist, title, - // seasonNumber, - // episodeNumber, - // absoluteEpisodeNumber, + foreignAlbumId, releaseDate, monitored, // hasFile, @@ -63,7 +61,6 @@ class CalendarEvent extends Component { const downloading = !!(queueItem || grabbed); const isMonitored = artist.monitored && monitored; const statusStyle = getStatusStyle(id, downloading, startTime, isMonitored); - // const missingAbsoluteNumber = artist.artistType === 'anime' && seasonNumber > 0 && !absoluteEpisodeNumber; return (
@@ -78,7 +75,9 @@ class CalendarEvent extends Component { >
- {artist.artistName} + + {artist.artistName} +
{ @@ -102,7 +101,9 @@ class CalendarEvent extends Component {
- {title} + + {title} +
@@ -115,6 +116,7 @@ CalendarEvent.propTypes = { id: PropTypes.number.isRequired, artist: PropTypes.object.isRequired, title: PropTypes.string.isRequired, + foreignAlbumId: PropTypes.string.isRequired, // seasonNumber: PropTypes.number.isRequired, // episodeNumber: PropTypes.number.isRequired, // absoluteEpisodeNumber: PropTypes.number,