mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-07 05:22:14 -07:00
parent
ec2dc34098
commit
c712d932a0
5 changed files with 11 additions and 9 deletions
|
@ -108,7 +108,7 @@ class HistoryRow extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'albumTitle') {
|
if (name === 'album.title') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
<AlbumTitleLink
|
<AlbumTitleLink
|
||||||
|
|
|
@ -152,7 +152,7 @@ class QueueRow extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'albumTitle') {
|
if (name === 'album.title') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
<AlbumTitleLink
|
<AlbumTitleLink
|
||||||
|
|
|
@ -42,8 +42,9 @@ export const defaultState = {
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'albumTitle',
|
name: 'album.title',
|
||||||
label: 'Album Title',
|
label: 'Album Title',
|
||||||
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -64,8 +64,9 @@ export const defaultState = {
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'albumTitle',
|
name: 'album.title',
|
||||||
label: 'Album Title',
|
label: 'Album Title',
|
||||||
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,11 +80,11 @@ namespace Lidarr.Api.V1.Queue
|
||||||
{
|
{
|
||||||
switch (pagingSpec.SortKey)
|
switch (pagingSpec.SortKey)
|
||||||
{
|
{
|
||||||
case "series.sortTitle":
|
case "artist.sortName":
|
||||||
return q => q.Artist.SortName;
|
return q => q.Artist.SortName;
|
||||||
case "episode":
|
case "album":
|
||||||
return q => q.Album;
|
return q => q.Album;
|
||||||
case "episode.title":
|
case "album.title":
|
||||||
return q => q.Album.Title;
|
return q => q.Album.Title;
|
||||||
case "quality":
|
case "quality":
|
||||||
return q => q.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)
|
public void Handle(QueueUpdatedEvent message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue