mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 15:23:40 -07:00
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
10 changed files with 20 additions and 20 deletions
|
@ -67,7 +67,7 @@ class BlacklistRow extends Component {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'artist.sortName') {
|
if (name === 'artists.sortName') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
<ArtistNameLink
|
<ArtistNameLink
|
||||||
|
|
|
@ -94,7 +94,7 @@ class HistoryRow extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'artist.sortName') {
|
if (name === 'artists.sortName') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
<ArtistNameLink
|
<ArtistNameLink
|
||||||
|
@ -105,7 +105,7 @@ class HistoryRow extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'album.title') {
|
if (name === 'albums.title') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
<AlbumTitleLink
|
<AlbumTitleLink
|
||||||
|
|
|
@ -137,7 +137,7 @@ class QueueRow extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'artist.sortName') {
|
if (name === 'artists.sortName') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
{
|
{
|
||||||
|
@ -152,7 +152,7 @@ class QueueRow extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'album.title') {
|
if (name === 'albums.title') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,7 @@ export const defaultState = {
|
||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
name: 'artist.sortName',
|
name: 'artists.sortName',
|
||||||
label: 'Artist Name',
|
label: 'Artist Name',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
|
|
|
@ -34,13 +34,13 @@ export const defaultState = {
|
||||||
isModifiable: false
|
isModifiable: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'artist.sortName',
|
name: 'artists.sortName',
|
||||||
label: 'Artist',
|
label: 'Artist',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'album.title',
|
name: 'albums.title',
|
||||||
label: 'Album Title',
|
label: 'Album Title',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
|
|
|
@ -63,13 +63,13 @@ export const defaultState = {
|
||||||
isModifiable: false
|
isModifiable: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'artist.sortName',
|
name: 'artists.sortName',
|
||||||
label: 'Artist',
|
label: 'Artist',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'album.title',
|
name: 'albums.title',
|
||||||
label: 'Album Title',
|
label: 'Album Title',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
|
|
|
@ -28,13 +28,13 @@ export const defaultState = {
|
||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
name: 'artist.sortName',
|
name: 'artists.sortName',
|
||||||
label: 'Artist Name',
|
label: 'Artist Name',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'albumTitle',
|
name: 'albums.title',
|
||||||
label: 'Album Title',
|
label: 'Album Title',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
|
@ -102,13 +102,13 @@ export const defaultState = {
|
||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
name: 'artist.sortName',
|
name: 'artists.sortName',
|
||||||
label: 'Artist Name',
|
label: 'Artist Name',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'albumTitle',
|
name: 'albums.title',
|
||||||
label: 'Album Title',
|
label: 'Album Title',
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: true
|
isVisible: true
|
||||||
|
|
|
@ -49,7 +49,7 @@ function CutoffUnmetRow(props) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'artist.sortName') {
|
if (name === 'artists.sortName') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
<ArtistNameLink
|
<ArtistNameLink
|
||||||
|
@ -60,7 +60,7 @@ function CutoffUnmetRow(props) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'albumTitle') {
|
if (name === 'albums.title') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
<AlbumTitleLink
|
<AlbumTitleLink
|
||||||
|
|
|
@ -46,7 +46,7 @@ function MissingRow(props) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'artist.sortName') {
|
if (name === 'artists.sortName') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
<ArtistNameLink
|
<ArtistNameLink
|
||||||
|
@ -57,7 +57,7 @@ function MissingRow(props) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (name === 'albumTitle') {
|
if (name === 'albums.title') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
<AlbumTitleLink
|
<AlbumTitleLink
|
||||||
|
|
|
@ -118,13 +118,13 @@ namespace Lidarr.Api.V1.Queue
|
||||||
{
|
{
|
||||||
case "status":
|
case "status":
|
||||||
return q => q.Status;
|
return q => q.Status;
|
||||||
case "artist.sortName":
|
case "artists.sortName":
|
||||||
return q => q.Artist?.SortName;
|
return q => q.Artist?.SortName;
|
||||||
case "title":
|
case "title":
|
||||||
return q => q.Title;
|
return q => q.Title;
|
||||||
case "album":
|
case "album":
|
||||||
return q => q.Album;
|
return q => q.Album;
|
||||||
case "album.title":
|
case "albums.title":
|
||||||
return q => q.Album?.Title;
|
return q => q.Album?.Title;
|
||||||
case "album.releaseDate":
|
case "album.releaseDate":
|
||||||
return q => q.Album?.ReleaseDate;
|
return q => q.Album?.ReleaseDate;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue