Fixed: Queue sort keys

Closes #194
pull/206/head
Qstick 7 years ago
parent ec2dc34098
commit c712d932a0

@ -108,7 +108,7 @@ class HistoryRow extends Component {
);
}
if (name === 'albumTitle') {
if (name === 'album.title') {
return (
<TableRowCell key={name}>
<AlbumTitleLink

@ -152,7 +152,7 @@ class QueueRow extends Component {
);
}
if (name === 'albumTitle') {
if (name === 'album.title') {
return (
<TableRowCell key={name}>
<AlbumTitleLink

@ -42,8 +42,9 @@ export const defaultState = {
isVisible: true
},
{
name: 'albumTitle',
name: 'album.title',
label: 'Album Title',
isSortable: true,
isVisible: true
},
{

@ -64,8 +64,9 @@ export const defaultState = {
isVisible: true
},
{
name: 'albumTitle',
name: 'album.title',
label: 'Album Title',
isSortable: true,
isVisible: true
},
{

@ -80,11 +80,11 @@ namespace Lidarr.Api.V1.Queue
{
switch (pagingSpec.SortKey)
{
case "series.sortTitle":
case "artist.sortName":
return q => q.Artist.SortName;
case "episode":
case "album":
return q => q.Album;
case "episode.title":
case "album.title":
return q => q.Album.Title;
case "quality":
return q => q.Quality;
@ -95,9 +95,9 @@ namespace Lidarr.Api.V1.Queue
}
}
private QueueResource MapToResource(NzbDrone.Core.Queue.Queue queueItem, bool includeSeries, bool includeEpisode)
private QueueResource MapToResource(NzbDrone.Core.Queue.Queue queueItem, bool includeArtist, bool includeAlbum)
{
return queueItem.ToResource(includeSeries, includeEpisode);
return queueItem.ToResource(includeArtist, includeAlbum);
}
public void Handle(QueueUpdatedEvent message)

Loading…
Cancel
Save