mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
1dbb664ef6
Fixes #4582
24 lines
345 B
JavaScript
24 lines
345 B
JavaScript
|
|
function getStatusStyle(hasFile, downloading, isAvailable, isMonitored) {
|
|
|
|
if (hasFile) {
|
|
return 'downloaded';
|
|
}
|
|
|
|
if (downloading) {
|
|
return 'downloading';
|
|
}
|
|
|
|
if (!isMonitored) {
|
|
return 'unmonitored';
|
|
}
|
|
|
|
if (isAvailable && !hasFile) {
|
|
return 'missing';
|
|
}
|
|
|
|
return 'unreleased';
|
|
}
|
|
|
|
export default getStatusStyle;
|