Fixed: Sorting tables by artist/album

Fixes Sentry LIDARR-10A
Fixes Sentry LIDARR-105
Fixes Sentry LIDARR-109
This commit is contained in:
ta264 2020-08-20 22:13:25 +01:00 committed by Qstick
parent 0f5531af4d
commit 2e1e2137a6
10 changed files with 20 additions and 20 deletions

View File

@ -67,7 +67,7 @@ class BlacklistRow extends Component {
return null;
}
if (name === 'artist.sortName') {
if (name === 'artists.sortName') {
return (
<TableRowCell key={name}>
<ArtistNameLink

View File

@ -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

View File

@ -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}>
{

View File

@ -27,7 +27,7 @@ export const defaultState = {
columns: [
{
name: 'artist.sortName',
name: 'artists.sortName',
label: 'Artist Name',
isSortable: true,
isVisible: true

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;