when pulling requests, set each to approved that is already available (so the UI avoids showing the approve option for already available content)

pull/110/head
Drewster727 9 years ago
parent dce5983720
commit 591385ae34

@ -99,7 +99,7 @@ namespace PlexRequests.UI.Modules
ReleaseDateTicks = movie.ReleaseDate.Ticks, ReleaseDateTicks = movie.ReleaseDate.Ticks,
RequestedDate = movie.RequestedDate.Humanize(), RequestedDate = movie.RequestedDate.Humanize(),
RequestedDateTicks = movie.RequestedDate.Ticks, RequestedDateTicks = movie.RequestedDate.Ticks,
Approved = movie.Approved, Approved = movie.Available ? true : movie.Approved,
Title = movie.Title, Title = movie.Title,
Overview = movie.Overview, Overview = movie.Overview,
RequestedBy = movie.RequestedBy, RequestedBy = movie.RequestedBy,
@ -136,7 +136,7 @@ namespace PlexRequests.UI.Modules
ReleaseDateTicks = tv.ReleaseDate.Ticks, ReleaseDateTicks = tv.ReleaseDate.Ticks,
RequestedDate = tv.RequestedDate.Humanize(), RequestedDate = tv.RequestedDate.Humanize(),
RequestedDateTicks = tv.RequestedDate.Ticks, RequestedDateTicks = tv.RequestedDate.Ticks,
Approved = tv.Approved, Approved = tv.Available ? true : tv.Approved,
Title = tv.Title, Title = tv.Title,
Overview = tv.Overview, Overview = tv.Overview,
RequestedBy = tv.RequestedBy, RequestedBy = tv.RequestedBy,

Loading…
Cancel
Save