mirror of https://github.com/lidarr/Lidarr
New: Album Release Date on queue screen
This commit is contained in:
parent
df34fb7be7
commit
61387b3d44
|
@ -5,6 +5,7 @@ import IconButton from 'Components/Link/IconButton';
|
|||
import SpinnerIconButton from 'Components/Link/SpinnerIconButton';
|
||||
import ProgressBar from 'Components/ProgressBar';
|
||||
import TableRow from 'Components/Table/TableRow';
|
||||
import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector';
|
||||
import TableRowCell from 'Components/Table/Cells/TableRowCell';
|
||||
import TableSelectCell from 'Components/Table/Cells/TableSelectCell';
|
||||
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') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
|
|
|
@ -69,6 +69,12 @@ export const defaultState = {
|
|||
isSortable: true,
|
||||
isVisible: true
|
||||
},
|
||||
{
|
||||
name: 'album.releaseDate',
|
||||
label: 'Album Release Date',
|
||||
isSortable: true,
|
||||
isVisible: false
|
||||
},
|
||||
{
|
||||
name: 'quality',
|
||||
label: 'Quality',
|
||||
|
|
|
@ -104,6 +104,8 @@ namespace Lidarr.Api.V1.Queue
|
|||
return q => q.Album;
|
||||
case "album.title":
|
||||
return q => q.Album.Title;
|
||||
case "album.releaseDate":
|
||||
return q => q.Album.ReleaseDate;
|
||||
case "quality":
|
||||
return q => q.Quality;
|
||||
case "progress":
|
||||
|
|
Loading…
Reference in New Issue