From 75599aed784b1d4c2c2ad7baeac2e79a968da6d6 Mon Sep 17 00:00:00 2001 From: Matt McHughes Date: Thu, 6 Oct 2016 15:02:13 -0500 Subject: [PATCH] WIP hide tv request options based on admin settings --- PlexRequests.UI/Content/search.js | 4 +++- PlexRequests.UI/Views/Search/Index.cshtml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/PlexRequests.UI/Content/search.js b/PlexRequests.UI/Content/search.js index cab9171e1..ea22b5ce5 100644 --- a/PlexRequests.UI/Content/search.js +++ b/PlexRequests.UI/Content/search.js @@ -468,7 +468,9 @@ $(function () { episodes: result.episodes, tvFullyAvailable: result.tvFullyAvailable, url: result.plexUrl, - tvPartialAvailable : result.tvPartialAvailable + tvPartialAvailable: result.tvPartialAvailable, + disableTvRequestsByEpisode: result.disableTvRequestsByEpisode, + disableTvRequestsBySeason: result.disableTvRequestsBySeason }; return context; } diff --git a/PlexRequests.UI/Views/Search/Index.cshtml b/PlexRequests.UI/Views/Search/Index.cshtml index f49dddf6a..5d29eb483 100644 --- a/PlexRequests.UI/Views/Search/Index.cshtml +++ b/PlexRequests.UI/Views/Search/Index.cshtml @@ -213,10 +213,14 @@ {{#if available}}