Fixed: Digital before Physical for normal release order

pull/4581/head
Qstick 4 years ago
parent 74539d2025
commit d791f3f67f

@ -29,26 +29,25 @@ function MovieReleaseDates(props) {
</div>
}
{
!!physicalRelease &&
!!digitalRelease &&
<div >
<span className={styles.dateIcon}>
<Icon
name={icons.DISC}
name={icons.MOVIE_FILE}
/>
</span>
{getRelativeDate(physicalRelease, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })}
{getRelativeDate(digitalRelease, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })}
</div>
}
{
!!digitalRelease &&
!!physicalRelease &&
<div >
<span className={styles.dateIcon}>
<Icon
name={icons.MOVIE_FILE}
name={icons.DISC}
/>
</span>
{getRelativeDate(digitalRelease, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })}
{getRelativeDate(physicalRelease, shortDateFormat, showRelativeDates, { timeFormat, timeForToday: false })}
</div>
}
</div>

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

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

Loading…
Cancel
Save