From 591385ae3439465246d5d60ff797546b0a6b8e31 Mon Sep 17 00:00:00 2001 From: Drewster727 Date: Tue, 29 Mar 2016 10:11:06 -0500 Subject: [PATCH] when pulling requests, set each to approved that is already available (so the UI avoids showing the approve option for already available content) --- PlexRequests.UI/Modules/RequestsModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PlexRequests.UI/Modules/RequestsModule.cs b/PlexRequests.UI/Modules/RequestsModule.cs index b49acd013..d6f565f27 100644 --- a/PlexRequests.UI/Modules/RequestsModule.cs +++ b/PlexRequests.UI/Modules/RequestsModule.cs @@ -99,7 +99,7 @@ namespace PlexRequests.UI.Modules ReleaseDateTicks = movie.ReleaseDate.Ticks, RequestedDate = movie.RequestedDate.Humanize(), RequestedDateTicks = movie.RequestedDate.Ticks, - Approved = movie.Approved, + Approved = movie.Available ? true : movie.Approved, Title = movie.Title, Overview = movie.Overview, RequestedBy = movie.RequestedBy, @@ -136,7 +136,7 @@ namespace PlexRequests.UI.Modules ReleaseDateTicks = tv.ReleaseDate.Ticks, RequestedDate = tv.RequestedDate.Humanize(), RequestedDateTicks = tv.RequestedDate.Ticks, - Approved = tv.Approved, + Approved = tv.Available ? true : tv.Approved, Title = tv.Title, Overview = tv.Overview, RequestedBy = tv.RequestedBy,