1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Fixed: Digital before Physical for normal release order

This commit is contained in:
Qstick 2020-07-08 09:28:42 -04:00
parent 74539d2025
commit d791f3f67f
3 changed files with 26 additions and 27 deletions

View File

@ -28,18 +28,6 @@ function MovieReleaseDates(props) {
{getRelativeDate(inCinemas, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })} {getRelativeDate(inCinemas, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })}
</div> </div>
} }
{
!!physicalRelease &&
<div >
<span className={styles.dateIcon}>
<Icon
name={icons.DISC}
/>
</span>
{getRelativeDate(physicalRelease, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })}
</div>
}
{ {
!!digitalRelease && !!digitalRelease &&
<div > <div >
@ -51,6 +39,17 @@ function MovieReleaseDates(props) {
{getRelativeDate(digitalRelease, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })} {getRelativeDate(digitalRelease, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })}
</div> </div>
} }
{
!!physicalRelease &&
<div >
<span className={styles.dateIcon}>
<Icon
name={icons.DISC}
/>
</span>
{getRelativeDate(physicalRelease, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })}
</div>
}
</div> </div>
); );
} }

View File

@ -215,17 +215,6 @@ class MovieIndexRow extends Component {
); );
} }
if (name === 'physicalRelease') {
return (
<RelativeDateCellConnector
key={name}
className={styles[name]}
date={physicalRelease}
component={VirtualTableRowCell}
/>
);
}
if (name === 'digitalRelease') { if (name === 'digitalRelease') {
return ( return (
<RelativeDateCellConnector <RelativeDateCellConnector
@ -237,6 +226,17 @@ class MovieIndexRow extends Component {
); );
} }
if (name === 'physicalRelease') {
return (
<RelativeDateCellConnector
key={name}
className={styles[name]}
date={physicalRelease}
component={VirtualTableRowCell}
/>
);
}
if (name === 'runtime') { if (name === 'runtime') {
return ( return (
<VirtualTableRowCell <VirtualTableRowCell

View File

@ -114,14 +114,14 @@ export const defaultState = {
isVisible: false isVisible: false
}, },
{ {
name: 'physicalRelease', name: 'digitalRelease',
label: 'Physical Release', label: 'Digital Release',
isSortable: true, isSortable: true,
isVisible: false isVisible: false
}, },
{ {
name: 'digitalRelease', name: 'physicalRelease',
label: 'Digital Release', label: 'Physical Release',
isSortable: true, isSortable: true,
isVisible: false isVisible: false
}, },