New: Runtime Column/Filter on Movie Index

Fixes #4131
This commit is contained in:
Qstick
2020-02-25 20:30:42 -05:00
parent 7584d95149
commit 3de65daf85
4 changed files with 26 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ class MovieIndexRow extends Component {
added,
inCinemas,
physicalRelease,
runtime,
minimumAvailability,
path,
sizeOnDisk,
@@ -212,6 +213,17 @@ class MovieIndexRow extends Component {
);
}
if (name === 'runtime') {
return (
<VirtualTableRowCell
key={name}
className={styles[name]}
>
{runtime} Minutes
</VirtualTableRowCell>
);
}
if (name === 'minimumAvailability') {
return (
<VirtualTableRowCell
@@ -376,6 +388,7 @@ MovieIndexRow.propTypes = {
added: PropTypes.string,
inCinemas: PropTypes.string,
physicalRelease: PropTypes.string,
runtime: PropTypes.number,
minimumAvailability: PropTypes.string.isRequired,
path: PropTypes.string.isRequired,
sizeOnDisk: PropTypes.number.isRequired,