new quality profile edit view.

This commit is contained in:
kay.one 2013-05-30 22:56:00 -07:00
commit dca32e9e0f
5 changed files with 66 additions and 36 deletions

View file

@ -75,7 +75,10 @@ namespace NzbDrone.Api.Qualities
return new QualityProfileResource
{
Cutoff = profile.Cutoff.InjectTo<QualityResource>(),
Qualities = Quality.All().InjectTo<List<QualityResource>>(),
Available = Quality.All()
.Where(c => !profile.Allowed.Any(q => c.Id == q.Id))
.InjectTo<List<QualityResource>>(),
Allowed = profile.Allowed.InjectTo<List<QualityResource>>(),
Name = profile.Name,
Id = profile.Id