mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
parent
f59b391b28
commit
9ede227178
@ -10,7 +10,6 @@ import styles from './MovieFileStatus.css';
|
|||||||
|
|
||||||
function MovieFileStatus(props) {
|
function MovieFileStatus(props) {
|
||||||
const {
|
const {
|
||||||
inCinemas,
|
|
||||||
isAvailable,
|
isAvailable,
|
||||||
monitored,
|
monitored,
|
||||||
grabbed,
|
grabbed,
|
||||||
@ -20,7 +19,7 @@ function MovieFileStatus(props) {
|
|||||||
|
|
||||||
const hasMovieFile = !!movieFile;
|
const hasMovieFile = !!movieFile;
|
||||||
const isQueued = !!queueItem;
|
const isQueued = !!queueItem;
|
||||||
const hasReleased = isAvailable && inCinemas;
|
const hasReleased = isAvailable;
|
||||||
|
|
||||||
if (isQueued) {
|
if (isQueued) {
|
||||||
const {
|
const {
|
||||||
@ -78,7 +77,7 @@ function MovieFileStatus(props) {
|
|||||||
return (
|
return (
|
||||||
<div className={styles.center}>
|
<div className={styles.center}>
|
||||||
<Label
|
<Label
|
||||||
title="Announced"
|
title="Not Monitored"
|
||||||
kind={kinds.WARNING}
|
kind={kinds.WARNING}
|
||||||
>
|
>
|
||||||
Not Monitored
|
Not Monitored
|
||||||
@ -103,7 +102,7 @@ function MovieFileStatus(props) {
|
|||||||
return (
|
return (
|
||||||
<div className={styles.center}>
|
<div className={styles.center}>
|
||||||
<Label
|
<Label
|
||||||
title="Announced"
|
title="Not Available"
|
||||||
kind={kinds.INFO}
|
kind={kinds.INFO}
|
||||||
>
|
>
|
||||||
Not Available
|
Not Available
|
||||||
@ -113,7 +112,6 @@ function MovieFileStatus(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MovieFileStatus.propTypes = {
|
MovieFileStatus.propTypes = {
|
||||||
inCinemas: PropTypes.string,
|
|
||||||
isAvailable: PropTypes.bool,
|
isAvailable: PropTypes.bool,
|
||||||
monitored: PropTypes.bool.isRequired,
|
monitored: PropTypes.bool.isRequired,
|
||||||
grabbed: PropTypes.bool,
|
grabbed: PropTypes.bool,
|
||||||
|
@ -168,7 +168,7 @@ export const sortPredicates = {
|
|||||||
|
|
||||||
const hasMovieFile = !!item.movieFile;
|
const hasMovieFile = !!item.movieFile;
|
||||||
|
|
||||||
if (item.isAvailable && item.inCinemas) {
|
if (item.isAvailable) {
|
||||||
result++;
|
result++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user