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,
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,

Loading…
Cancel
Save