mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Log view now uses proper paging so it doesn't take a year to load up each page.
This commit is contained in:
parent
c2c62aa538
commit
780abad3f7
3 changed files with 13 additions and 5 deletions
|
@ -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 });
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue