mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 01:37:07 +00:00
New: Sort queue by status
This commit is contained in:
parent
69627911b3
commit
813e5e1db8
2 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,7 @@ export const defaultState = {
|
||||||
{
|
{
|
||||||
name: 'status',
|
name: 'status',
|
||||||
columnLabel: 'Status',
|
columnLabel: 'Status',
|
||||||
|
isSortable: true,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
isModifiable: false
|
isModifiable: false
|
||||||
},
|
},
|
||||||
|
|
|
@ -142,6 +142,8 @@ namespace Sonarr.Api.V3.Queue
|
||||||
{
|
{
|
||||||
switch (pagingSpec.SortKey)
|
switch (pagingSpec.SortKey)
|
||||||
{
|
{
|
||||||
|
case "status":
|
||||||
|
return q => q.Status;
|
||||||
case "series.sortTitle":
|
case "series.sortTitle":
|
||||||
return q => q.Series?.SortTitle;
|
return q => q.Series?.SortTitle;
|
||||||
case "episode":
|
case "episode":
|
||||||
|
|
Loading…
Reference in a new issue