1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 03:52:33 +02:00

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

@ -46,6 +46,12 @@
flex: 0 0 100px;
}
.year {
composes: headerCell from '~Components/Table/VirtualTableHeaderCell.css';
flex: 0 0 80px;
}
.path {
composes: headerCell from '~Components/Table/VirtualTableHeaderCell.css';

View File

@ -53,6 +53,12 @@
flex: 0 0 100px;
}
.year {
composes: cell;
flex: 0 0 80px;
}
.path {
composes: cell;

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,

View File

@ -101,6 +101,12 @@ export const defaultState = {
isSortable: true,
isVisible: false
},
{
name: 'year',
label: 'Year',
isSortable: true,
isVisible: false
},
{
name: 'inCinemas',
label: 'In Cinemas',