mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-26 22:46:53 -04:00
Fix: use isAvailable to determine if a movie is available.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import isBefore from 'Utilities/Date/isBefore';
|
||||
import { icons, kinds, sizes } from 'Helpers/Props';
|
||||
import Icon from 'Components/Icon';
|
||||
import ProgressBar from 'Components/ProgressBar';
|
||||
@@ -30,6 +29,7 @@ function getTooltip(title, quality, size) {
|
||||
function MovieStatus(props) {
|
||||
const {
|
||||
inCinemas,
|
||||
isAvailable,
|
||||
monitored,
|
||||
grabbed,
|
||||
queueItem,
|
||||
@@ -38,7 +38,7 @@ function MovieStatus(props) {
|
||||
|
||||
const hasMovieFile = !!movieFile;
|
||||
const isQueued = !!queueItem;
|
||||
const hasReleased = isBefore(inCinemas);
|
||||
const hasReleased = isAvailable;
|
||||
|
||||
if (isQueued) {
|
||||
const {
|
||||
@@ -144,6 +144,7 @@ function MovieStatus(props) {
|
||||
|
||||
MovieStatus.propTypes = {
|
||||
inCinemas: PropTypes.string,
|
||||
isAvailable: PropTypes.bool,
|
||||
monitored: PropTypes.bool.isRequired,
|
||||
grabbed: PropTypes.bool,
|
||||
queueItem: PropTypes.object,
|
||||
|
||||
Reference in New Issue
Block a user