Fixed: Now the UI will update properly if you change a custom quality title in the Quality table.
This commit is contained in:
parent
89aa25e016
commit
efbce27a7c
|
@ -27,7 +27,7 @@ namespace NzbDrone.Api.Qualities
|
||||||
|
|
||||||
private QualityDefinitionResource GetById(int id)
|
private QualityDefinitionResource GetById(int id)
|
||||||
{
|
{
|
||||||
return _qualityDefinitionService.Get((Quality)id).InjectTo<QualityDefinitionResource>();
|
return _qualityDefinitionService.GetById(id).InjectTo<QualityDefinitionResource>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<QualityDefinitionResource> GetAll()
|
private List<QualityDefinitionResource> GetAll()
|
||||||
|
|
|
@ -12,6 +12,7 @@ namespace NzbDrone.Core.Qualities
|
||||||
{
|
{
|
||||||
void Update(QualityDefinition qualityDefinition);
|
void Update(QualityDefinition qualityDefinition);
|
||||||
List<QualityDefinition> All();
|
List<QualityDefinition> All();
|
||||||
|
QualityDefinition GetById(Int32 id);
|
||||||
QualityDefinition Get(Quality quality);
|
QualityDefinition Get(Quality quality);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,6 +45,11 @@ namespace NzbDrone.Core.Qualities
|
||||||
{
|
{
|
||||||
return GetAll().Values.ToList();
|
return GetAll().Values.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public QualityDefinition GetById(Int32 id)
|
||||||
|
{
|
||||||
|
return GetAll().Values.Single(v => v.Id == id);
|
||||||
|
}
|
||||||
|
|
||||||
public QualityDefinition Get(Quality quality)
|
public QualityDefinition Get(Quality quality)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue