mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Cleaned up Quality partial page.
Fixed the sortable, so multiple user profiles correctly update order (and save), user profile sortable is no long connected.
This commit is contained in:
@@ -137,6 +137,15 @@ namespace NzbDrone.Web.Controllers
|
||||
return PartialView();
|
||||
}
|
||||
|
||||
public QualityModel GetUpdatedProfileList()
|
||||
{
|
||||
var profiles = _qualityProvider.GetAllProfiles().ToList();
|
||||
var defaultQualityProfileId = Convert.ToInt32(_configProvider.GetValue("DefaultQualityProfile", profiles[0].ProfileId, true));
|
||||
var selectList = new SelectList(profiles, "ProfileId", "Name");
|
||||
|
||||
return new QualityModel {DefaultProfileId = defaultQualityProfileId, SelectList = selectList};
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult Index(SettingsModel data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user