mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Log view now uses proper paging so it doesn't take a year to load up each page.
This commit is contained in:
@@ -26,10 +26,12 @@ namespace NzbDrone.Web.Controllers
|
||||
return Json(new NotificationResult() { Title = "Logs Cleared" });
|
||||
}
|
||||
|
||||
[GridAction]
|
||||
public ActionResult _AjaxBinding()
|
||||
[GridAction(EnableCustomBinding = true)]
|
||||
public ActionResult _AjaxBinding(GridCommand gridCommand)
|
||||
{
|
||||
return View(new GridModel(_logProvider.GetAllLogs()));
|
||||
var logs = _logProvider.GetPagedLogs(gridCommand.Page, gridCommand.PageSize);
|
||||
|
||||
return View(new GridModel{ Data = logs.Items, Total = (int)logs.TotalItems });
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user