1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 03:52:33 +02:00

New: Show Digital Release on Poster view when Sorted By

This commit is contained in:
Qstick 2020-07-08 09:30:24 -04:00
parent d791f3f67f
commit 7d22696b1f

View File

@ -11,6 +11,7 @@ function MovieIndexPosterInfo(props) {
showQualityProfile,
added,
inCinemas,
digitalRelease,
physicalRelease,
certification,
path,
@ -73,6 +74,24 @@ function MovieIndexPosterInfo(props) {
);
}
if (sortKey === 'digitalRelease' && digitalRelease) {
const digitalReleaseDate = getRelativeDate(
digitalRelease,
shortDateFormat,
showRelativeDates,
{
timeFormat,
timeForToday: false
}
);
return (
<div className={styles.info}>
{`Digital ${digitalReleaseDate}`}
</div>
);
}
if (sortKey === 'physicalRelease' && physicalRelease) {
const physicalReleaseDate = getRelativeDate(
physicalRelease,
@ -125,6 +144,7 @@ MovieIndexPosterInfo.propTypes = {
added: PropTypes.string,
inCinemas: PropTypes.string,
certification: PropTypes.string,
digitalRelease: PropTypes.string,
physicalRelease: PropTypes.string,
path: PropTypes.string.isRequired,
sizeOnDisk: PropTypes.number,