1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Now the UI will update properly if you change a custom quality title in the Quality table.

This commit is contained in:
Taloth Saldono 2014-09-24 21:08:37 +02:00
parent 89aa25e016
commit efbce27a7c
2 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,7 @@ private void Update(QualityDefinitionResource resource)
private QualityDefinitionResource GetById(int id)
{
return _qualityDefinitionService.Get((Quality)id).InjectTo<QualityDefinitionResource>();
return _qualityDefinitionService.GetById(id).InjectTo<QualityDefinitionResource>();
}
private List<QualityDefinitionResource> GetAll()

View File

@ -12,6 +12,7 @@ public interface IQualityDefinitionService
{
void Update(QualityDefinition qualityDefinition);
List<QualityDefinition> All();
QualityDefinition GetById(Int32 id);
QualityDefinition Get(Quality quality);
}
@ -44,6 +45,11 @@ public List<QualityDefinition> All()
{
return GetAll().Values.ToList();
}
public QualityDefinition GetById(Int32 id)
{
return GetAll().Values.Single(v => v.Id == id);
}
public QualityDefinition Get(Quality quality)
{