1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01: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; flex: 0 0 100px;
} }
.year {
composes: headerCell from '~Components/Table/VirtualTableHeaderCell.css';
flex: 0 0 80px;
}
.path { .path {
composes: headerCell from '~Components/Table/VirtualTableHeaderCell.css'; composes: headerCell from '~Components/Table/VirtualTableHeaderCell.css';

View File

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

View File

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

View File

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