1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-20 21:54:58 -04:00

New: Sort by series year in series list

Closes #3245
This commit is contained in:
Mark McDowall
2019-08-15 23:28:54 -07:00
parent 07d553fae3
commit 8fd4a98fbe
4 changed files with 31 additions and 0 deletions
@@ -94,6 +94,7 @@ class SeriesIndexRow extends Component {
added,
statistics,
latestSeason,
year,
path,
genres,
ratings,
@@ -342,6 +343,17 @@ class SeriesIndexRow extends Component {
);
}
if (name === 'year') {
return (
<VirtualTableRowCell
key={name}
className={styles[name]}
>
{year}
</VirtualTableRowCell>
);
}
if (name === 'path') {
return (
<VirtualTableRowCell
@@ -503,6 +515,7 @@ SeriesIndexRow.propTypes = {
added: PropTypes.string,
statistics: PropTypes.object.isRequired,
latestSeason: PropTypes.object,
year: PropTypes.number,
path: PropTypes.string.isRequired,
genres: PropTypes.arrayOf(PropTypes.string).isRequired,
ratings: PropTypes.object.isRequired,