From af43cb2aca0e931ff3518962c097dbccb423634e Mon Sep 17 00:00:00 2001 From: Giulia Petenazzi Date: Mon, 6 Feb 2023 02:09:20 +0100 Subject: [PATCH] New: Added release year to queue ( issue #6330) (#8019) --- frontend/src/Activity/Queue/QueueRow.js | 12 ++++++++++++ frontend/src/Store/Actions/queueActions.js | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/frontend/src/Activity/Queue/QueueRow.js b/frontend/src/Activity/Queue/QueueRow.js index 69af9199c..225c6d4d5 100644 --- a/frontend/src/Activity/Queue/QueueRow.js +++ b/frontend/src/Activity/Queue/QueueRow.js @@ -128,6 +128,7 @@ class QueueRow extends Component { { columns.map((column) => { + const { name, isVisible @@ -234,6 +235,16 @@ class QueueRow extends Component { ); } + if (name === 'year') { + return ( + + { + movie ? movie.year : '' + } + + ); + } + if (name === 'title') { return ( @@ -362,6 +373,7 @@ QueueRow.propTypes = { estimatedCompletionTime: PropTypes.string, timeleft: PropTypes.string, size: PropTypes.number, + year: PropTypes.number, sizeleft: PropTypes.number, showRelativeDates: PropTypes.bool.isRequired, shortDateFormat: PropTypes.string.isRequired, diff --git a/frontend/src/Store/Actions/queueActions.js b/frontend/src/Store/Actions/queueActions.js index 9a6130585..9bdd26725 100644 --- a/frontend/src/Store/Actions/queueActions.js +++ b/frontend/src/Store/Actions/queueActions.js @@ -118,6 +118,12 @@ export const defaultState = { isSortable: true, isVisible: false }, + { + name: 'year', + label: translate('Year'), + isSortable: true, + isVisible: true + }, { name: 'outputPath', label: translate('OutputPath'),