mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 12:33:00 +02:00
Log grid will reload when logs are cleared.
History grid will reload when history is trimmed or purged.
This commit is contained in:
@@ -19,6 +19,11 @@ namespace NzbDrone.Web.Controllers
|
||||
}
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public JsonResult AjaxBinding()
|
||||
{
|
||||
var history = _historyProvider.AllItemsWithRelationships().Select(h => new HistoryModel
|
||||
{
|
||||
@@ -36,9 +41,11 @@ namespace NzbDrone.Web.Controllers
|
||||
EpisodeId = h.EpisodeId
|
||||
}).OrderByDescending(h => h.Date).ToList();
|
||||
|
||||
var serialized = new JavaScriptSerializer().Serialize(history);
|
||||
|
||||
return View((object)serialized);
|
||||
return Json(new
|
||||
{
|
||||
aaData = history
|
||||
},
|
||||
JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
|
||||
public JsonResult Trim()
|
||||
|
Reference in New Issue
Block a user