ignore items that are already available when approving in bulk, and simplify the checking + compile css

This commit is contained in:
Drewster727 2016-03-30 14:35:22 -05:00
parent 1ca3e0532b
commit 934425a0c5
4 changed files with 14 additions and 5 deletions

View file

@ -59,6 +59,15 @@ namespace PlexRequests.Store
}
}
[JsonIgnore]
public bool CanApprove
{
get
{
return !Approved && !Available;
}
}
public bool UserHasRequested(string username)
{
return AllUsers.Any(x => x.Equals(username, StringComparison.OrdinalIgnoreCase));