New: Album Release Date on queue screen

pull/481/head
Qstick 6 years ago
parent df34fb7be7
commit 61387b3d44

@ -5,6 +5,7 @@ import IconButton from 'Components/Link/IconButton';
import SpinnerIconButton from 'Components/Link/SpinnerIconButton'; import SpinnerIconButton from 'Components/Link/SpinnerIconButton';
import ProgressBar from 'Components/ProgressBar'; import ProgressBar from 'Components/ProgressBar';
import TableRow from 'Components/Table/TableRow'; import TableRow from 'Components/Table/TableRow';
import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector';
import TableRowCell from 'Components/Table/Cells/TableRowCell'; import TableRowCell from 'Components/Table/Cells/TableRowCell';
import TableSelectCell from 'Components/Table/Cells/TableSelectCell'; import TableSelectCell from 'Components/Table/Cells/TableSelectCell';
import ProtocolLabel from 'Activity/Queue/ProtocolLabel'; import ProtocolLabel from 'Activity/Queue/ProtocolLabel';
@ -164,6 +165,15 @@ class QueueRow extends Component {
); );
} }
if (name === 'album.releaseDate') {
return (
<RelativeDateCellConnector
key={name}
date={album.releaseDate}
/>
);
}
if (name === 'quality') { if (name === 'quality') {
return ( return (
<TableRowCell key={name}> <TableRowCell key={name}>

@ -69,6 +69,12 @@ export const defaultState = {
isSortable: true, isSortable: true,
isVisible: true isVisible: true
}, },
{
name: 'album.releaseDate',
label: 'Album Release Date',
isSortable: true,
isVisible: false
},
{ {
name: 'quality', name: 'quality',
label: 'Quality', label: 'Quality',

@ -104,6 +104,8 @@ namespace Lidarr.Api.V1.Queue
return q => q.Album; return q => q.Album;
case "album.title": case "album.title":
return q => q.Album.Title; return q => q.Album.Title;
case "album.releaseDate":
return q => q.Album.ReleaseDate;
case "quality": case "quality":
return q => q.Quality; return q => q.Quality;
case "progress": case "progress":

Loading…
Cancel
Save