mirror of https://github.com/lidarr/Lidarr
Fixed: Sorting tables by artist/album
Fixes Sentry LIDARR-10A Fixes Sentry LIDARR-105 Fixes Sentry LIDARR-109
This commit is contained in:
parent
0f5531af4d
commit
2e1e2137a6
|
@ -67,7 +67,7 @@ class BlacklistRow extends Component {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (name === 'artist.sortName') {
|
||||
if (name === 'artists.sortName') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<ArtistNameLink
|
||||
|
|
|
@ -94,7 +94,7 @@ class HistoryRow extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'artist.sortName') {
|
||||
if (name === 'artists.sortName') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<ArtistNameLink
|
||||
|
@ -105,7 +105,7 @@ class HistoryRow extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'album.title') {
|
||||
if (name === 'albums.title') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<AlbumTitleLink
|
||||
|
|
|
@ -137,7 +137,7 @@ class QueueRow extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'artist.sortName') {
|
||||
if (name === 'artists.sortName') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
{
|
||||
|
@ -152,7 +152,7 @@ class QueueRow extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'album.title') {
|
||||
if (name === 'albums.title') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ export const defaultState = {
|
|||
|
||||
columns: [
|
||||
{
|
||||
name: 'artist.sortName',
|
||||
name: 'artists.sortName',
|
||||
label: 'Artist Name',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
|
|
|
@ -34,13 +34,13 @@ export const defaultState = {
|
|||
isModifiable: false
|
||||
},
|
||||
{
|
||||
name: 'artist.sortName',
|
||||
name: 'artists.sortName',
|
||||
label: 'Artist',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
},
|
||||
{
|
||||
name: 'album.title',
|
||||
name: 'albums.title',
|
||||
label: 'Album Title',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
|
|
|
@ -63,13 +63,13 @@ export const defaultState = {
|
|||
isModifiable: false
|
||||
},
|
||||
{
|
||||
name: 'artist.sortName',
|
||||
name: 'artists.sortName',
|
||||
label: 'Artist',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
},
|
||||
{
|
||||
name: 'album.title',
|
||||
name: 'albums.title',
|
||||
label: 'Album Title',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
|
|
|
@ -28,13 +28,13 @@ export const defaultState = {
|
|||
|
||||
columns: [
|
||||
{
|
||||
name: 'artist.sortName',
|
||||
name: 'artists.sortName',
|
||||
label: 'Artist Name',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
},
|
||||
{
|
||||
name: 'albumTitle',
|
||||
name: 'albums.title',
|
||||
label: 'Album Title',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
|
@ -102,13 +102,13 @@ export const defaultState = {
|
|||
|
||||
columns: [
|
||||
{
|
||||
name: 'artist.sortName',
|
||||
name: 'artists.sortName',
|
||||
label: 'Artist Name',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
},
|
||||
{
|
||||
name: 'albumTitle',
|
||||
name: 'albums.title',
|
||||
label: 'Album Title',
|
||||
isSortable: true,
|
||||
isVisible: true
|
||||
|
|
|
@ -49,7 +49,7 @@ function CutoffUnmetRow(props) {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (name === 'artist.sortName') {
|
||||
if (name === 'artists.sortName') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<ArtistNameLink
|
||||
|
@ -60,7 +60,7 @@ function CutoffUnmetRow(props) {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'albumTitle') {
|
||||
if (name === 'albums.title') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<AlbumTitleLink
|
||||
|
|
|
@ -46,7 +46,7 @@ function MissingRow(props) {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (name === 'artist.sortName') {
|
||||
if (name === 'artists.sortName') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<ArtistNameLink
|
||||
|
@ -57,7 +57,7 @@ function MissingRow(props) {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'albumTitle') {
|
||||
if (name === 'albums.title') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<AlbumTitleLink
|
||||
|
|
|
@ -118,13 +118,13 @@ namespace Lidarr.Api.V1.Queue
|
|||
{
|
||||
case "status":
|
||||
return q => q.Status;
|
||||
case "artist.sortName":
|
||||
case "artists.sortName":
|
||||
return q => q.Artist?.SortName;
|
||||
case "title":
|
||||
return q => q.Title;
|
||||
case "album":
|
||||
return q => q.Album;
|
||||
case "album.title":
|
||||
case "albums.title":
|
||||
return q => q.Album?.Title;
|
||||
case "album.releaseDate":
|
||||
return q => q.Album?.ReleaseDate;
|
||||
|
|
Loading…
Reference in New Issue