New: Year column on Movie Index view

This commit is contained in:
Qstick
2020-07-04 21:59:54 -04:00
parent 98c4e63309
commit b97e6977fb
4 changed files with 31 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ class MovieIndexRow extends Component {
studio,
qualityProfile,
added,
year,
inCinemas,
physicalRelease,
runtime,
@@ -191,6 +192,17 @@ class MovieIndexRow extends Component {
);
}
if (name === 'year') {
return (
<VirtualTableRowCell
key={name}
className={styles[name]}
>
{year}
</VirtualTableRowCell>
);
}
if (name === 'inCinemas') {
return (
<RelativeDateCellConnector
@@ -386,6 +398,7 @@ MovieIndexRow.propTypes = {
collection: PropTypes.object,
qualityProfile: PropTypes.object.isRequired,
added: PropTypes.string,
year: PropTypes.number,
inCinemas: PropTypes.string,
physicalRelease: PropTypes.string,
runtime: PropTypes.number,