mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Sort by Monitor-Status Column
This commit is contained in:
@@ -107,11 +107,19 @@ export const sortPredicates = {
|
|||||||
let result = 0;
|
let result = 0;
|
||||||
|
|
||||||
if (item.monitored) {
|
if (item.monitored) {
|
||||||
|
result += 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.status === 'announced') {
|
||||||
|
result++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.status === 'inCinemas') {
|
||||||
result += 2;
|
result += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.status === 'continuing') {
|
if (item.status === 'released') {
|
||||||
result++;
|
result += 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Reference in New Issue
Block a user