mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fix an issue with the language on status labels for inCinemas and added translation to the movieStatus variable (#4986)
Fix issue where status text was not consistent across all 3 index views and the details
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
import { kinds } from 'Helpers/Props';
|
||||
|
||||
function getProgressBarKind(status, monitored, hasFile, queue = false) {
|
||||
function getProgressBarKind(status, monitored, hasFile, isAvailable, queue = false) {
|
||||
if (queue) {
|
||||
return kinds.QUEUE;
|
||||
}
|
||||
|
||||
if (status === 'announced') {
|
||||
return kinds.PRIMARY;
|
||||
}
|
||||
|
||||
if (hasFile && monitored) {
|
||||
return kinds.SUCCESS;
|
||||
}
|
||||
@@ -17,11 +13,15 @@ function getProgressBarKind(status, monitored, hasFile, queue = false) {
|
||||
return kinds.DEFAULT;
|
||||
}
|
||||
|
||||
if (monitored) {
|
||||
if (isAvailable) {
|
||||
return kinds.DANGER;
|
||||
}
|
||||
|
||||
return kinds.WARNING;
|
||||
if (!monitored) {
|
||||
return kinds.WARNING;
|
||||
}
|
||||
|
||||
return kinds.PRIMARY;
|
||||
}
|
||||
|
||||
export default getProgressBarKind;
|
||||
|
Reference in New Issue
Block a user