mirror of https://github.com/Radarr/Radarr
Fixed: Sort by Monitor-Status Column
This commit is contained in:
parent
634697af2d
commit
ae6a95bad8
|
@ -107,11 +107,19 @@ export const sortPredicates = {
|
|||
let result = 0;
|
||||
|
||||
if (item.monitored) {
|
||||
result += 4;
|
||||
}
|
||||
|
||||
if (item.status === 'announced') {
|
||||
result++;
|
||||
}
|
||||
|
||||
if (item.status === 'inCinemas') {
|
||||
result += 2;
|
||||
}
|
||||
|
||||
if (item.status === 'continuing') {
|
||||
result++;
|
||||
if (item.status === 'released') {
|
||||
result += 3;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue