mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
leftover notification code
This commit is contained in:
parent
5ab07d7028
commit
1e9ae9a508
6 changed files with 16 additions and 13 deletions
|
@ -321,7 +321,7 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult SaveQuality(QualityModel data)
|
||||
public JsonResult SaveQuality(QualityModel data)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
|
@ -348,7 +348,7 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
//If the Cutoff value selected is not in the allowed list then use the last allowed value, this should be validated on submit
|
||||
if (!profile.Allowed.Contains(profile.Cutoff))
|
||||
return Content("Error Saving Settings, please fix any errors");
|
||||
return GetInvalidModelResult();
|
||||
//profile.Cutoff = profile.Allowed.Last();
|
||||
|
||||
_qualityProvider.Update(profile);
|
||||
|
@ -361,7 +361,7 @@ namespace NzbDrone.Web.Controllers
|
|||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult SaveNotifications(NotificationSettingsModel data)
|
||||
public JsonResult SaveNotifications(NotificationSettingsModel data)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
|
@ -385,7 +385,7 @@ namespace NzbDrone.Web.Controllers
|
|||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult SaveEpisodeSorting(EpisodeSortingModel data)
|
||||
public JsonResult SaveEpisodeSorting(EpisodeSortingModel data)
|
||||
{
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue