mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Better ajax notification for queued jobs.
This commit is contained in:
@@ -17,31 +17,34 @@ namespace NzbDrone.Web.Controllers
|
||||
public JsonResult Search(int episodeId)
|
||||
{
|
||||
_jobProvider.QueueJob(typeof(EpisodeSearchJob), episodeId);
|
||||
return JsonNotificationResult.Info("Queued");
|
||||
return JsonNotificationResult.Queued("Episode search");
|
||||
}
|
||||
|
||||
public JsonResult SearchSeason(int seriesId, int seasonNumber)
|
||||
{
|
||||
_jobProvider.QueueJob(typeof(SeasonSearchJob), seriesId, seasonNumber);
|
||||
return JsonNotificationResult.Info("Queued");
|
||||
return JsonNotificationResult.Queued("Season search");
|
||||
|
||||
}
|
||||
|
||||
public JsonResult BacklogSeries(int seriesId)
|
||||
{
|
||||
_jobProvider.QueueJob(typeof(SeriesSearchJob), seriesId);
|
||||
return JsonNotificationResult.Info("Queued");
|
||||
return JsonNotificationResult.Queued("Series Backlog");
|
||||
|
||||
}
|
||||
|
||||
public JsonResult RenameSeason(int seriesId, int seasonNumber)
|
||||
{
|
||||
_jobProvider.QueueJob(typeof(RenameSeasonJob), seriesId, seasonNumber);
|
||||
return JsonNotificationResult.Info("Queued");
|
||||
return JsonNotificationResult.Queued("Season rename");
|
||||
|
||||
}
|
||||
|
||||
public JsonResult RenameEpisodes(int seriesId)
|
||||
{
|
||||
_jobProvider.QueueJob(typeof(RenameSeriesJob), seriesId);
|
||||
return JsonNotificationResult.Info("Queued");
|
||||
return JsonNotificationResult.Queued("Series rename");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user