mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
New: Digital Releases on Calendar, Misc Other Calendar Fixes
Fixes #4582
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
/* eslint max-params: 0 */
|
||||
import moment from 'moment';
|
||||
|
||||
function getStatusStyle(hasFile, downloading, startTime, isMonitored) {
|
||||
const currentTime = moment();
|
||||
function getStatusStyle(hasFile, downloading, isAvailable, isMonitored) {
|
||||
|
||||
if (hasFile) {
|
||||
return 'downloaded';
|
||||
@@ -16,7 +13,7 @@ function getStatusStyle(hasFile, downloading, startTime, isMonitored) {
|
||||
return 'unmonitored';
|
||||
}
|
||||
|
||||
if (startTime.isBefore(currentTime) && !hasFile) {
|
||||
if (isAvailable && !hasFile) {
|
||||
return 'missing';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user