From c712d932a0a5621b24910e804f6ceb5cfbc88f85 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 4 Feb 2018 00:53:03 -0500 Subject: [PATCH] Fixed: Queue sort keys Closes #194 --- frontend/src/Activity/History/HistoryRow.js | 2 +- frontend/src/Activity/Queue/QueueRow.js | 2 +- frontend/src/Store/Actions/historyActions.js | 3 ++- frontend/src/Store/Actions/queueActions.js | 3 ++- src/Lidarr.Api.V1/Queue/QueueModule.cs | 10 +++++----- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/frontend/src/Activity/History/HistoryRow.js b/frontend/src/Activity/History/HistoryRow.js index c98027496..715851b7e 100644 --- a/frontend/src/Activity/History/HistoryRow.js +++ b/frontend/src/Activity/History/HistoryRow.js @@ -108,7 +108,7 @@ class HistoryRow extends Component { ); } - if (name === 'albumTitle') { + if (name === 'album.title') { return ( 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)