mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Delete added to edit dialog for series.
This commit is contained in:
parent
e8ad13937a
commit
aba44fb121
4 changed files with 47 additions and 6 deletions
|
@ -61,7 +61,7 @@ namespace NzbDrone.Web.Controllers
|
|||
}
|
||||
|
||||
[HttpPost]
|
||||
public JsonResult SaveSeriesEditor(SeriesModel seriesModel)
|
||||
public EmptyResult SaveSeriesEditor(SeriesModel seriesModel)
|
||||
{
|
||||
var series = _seriesProvider.GetSeries(seriesModel.SeriesId);
|
||||
series.Monitored = seriesModel.Monitored;
|
||||
|
@ -72,15 +72,15 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
_seriesProvider.UpdateSeries(series);
|
||||
|
||||
return JsonNotificationResult.Info("Series Saved");
|
||||
return new EmptyResult();
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public JsonResult DeleteSeries(int seriesId)
|
||||
public EmptyResult DeleteSeries(int seriesId)
|
||||
{
|
||||
_jobProvider.QueueJob(typeof(DeleteSeriesJob), seriesId);
|
||||
|
||||
return JsonNotificationResult.Info("Series Deleted");
|
||||
return new EmptyResult();
|
||||
}
|
||||
|
||||
public JsonResult LocalSearch(string term)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue