1
0
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:
Qstick
2020-07-11 00:35:02 -04:00
parent 0b7067cf9c
commit 1dbb664ef6
5 changed files with 38 additions and 14 deletions
+2 -5
View File
@@ -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';
}