mirror of
https://github.com/Radarr/Radarr
synced 2024-12-31 20:35:37 +00:00
New: Show Digital Release on Poster view when Sorted By
This commit is contained in:
parent
d791f3f67f
commit
7d22696b1f
1 changed files with 20 additions and 0 deletions
|
@ -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…
Reference in a new issue