New: Show Digital Release on Poster view when Sorted By

pull/4581/head
Qstick 4 years ago
parent d791f3f67f
commit 7d22696b1f

@ -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,

Loading…
Cancel
Save