From 1875391a3ad97441f5175e64a01cb386d95f0e89 Mon Sep 17 00:00:00 2001 From: geogolem <55031547+geogolem@users.noreply.github.com> Date: Fri, 15 Nov 2019 19:23:33 -0500 Subject: [PATCH] Fix: Movie file count in footer and update movie legend colors --- .../src/Movie/Index/MovieIndexFooterConnector.js | 6 ++++-- frontend/src/Movie/MovieStatus.js | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/src/Movie/Index/MovieIndexFooterConnector.js b/frontend/src/Movie/Index/MovieIndexFooterConnector.js index 937dc78da..a8ea0c53d 100644 --- a/frontend/src/Movie/Index/MovieIndexFooterConnector.js +++ b/frontend/src/Movie/Index/MovieIndexFooterConnector.js @@ -13,14 +13,16 @@ function createUnoptimizedSelector() { monitored, status, statistics, - sizeOnDisk + sizeOnDisk, + hasFile } = s; return { monitored, status, statistics, - sizeOnDisk + sizeOnDisk, + hasFile }; }); } diff --git a/frontend/src/Movie/MovieStatus.js b/frontend/src/Movie/MovieStatus.js index 269b9d18e..ded493a17 100644 --- a/frontend/src/Movie/MovieStatus.js +++ b/frontend/src/Movie/MovieStatus.js @@ -76,7 +76,7 @@ function MovieStatus(props) { ); } - if (hasMovieFile) { + if (hasMovieFile && monitored) { const quality = movieFile.quality; // TODO: Fix on Backend // const isCutoffNotMet = movieFile.qualityCutoffNotMet; @@ -91,6 +91,19 @@ function MovieStatus(props) { ); + } else if (hasMovieFile && !monitored) { + const quality = movieFile.quality; + + return ( +