Fixed issue Event Log strange behavior with the Paging control #1158

This commit is contained in:
Leigh Pointer
2021-03-10 17:00:49 +01:00
parent 3ff1dc4a21
commit b58c7386b3

View File

@ -48,7 +48,7 @@ else
@if (_logs.Any()) @if (_logs.Any())
{ {
<Pager Items="@_logs"> <Pager TableItem="Log" Items="@_logs">
<Header> <Header>
<th style="width: 1px;">&nbsp;</th> <th style="width: 1px;">&nbsp;</th>
<th>@Localizer["Date"]</th> <th>@Localizer["Date"]</th>
@ -141,6 +141,10 @@ else
private async Task GetLogs() private async Task GetLogs()
{ {
_logs = await LogService.GetLogsAsync(PageState.Site.SiteId, ((_level == "-") ? string.Empty : _level), ((_function == "-") ? string.Empty : _function), int.Parse(_rows)); _logs = await LogService.GetLogsAsync(PageState.Site.SiteId, ((_level == "-") ? string.Empty : _level), ((_function == "-") ? string.Empty : _function), int.Parse(_rows));
await InvokeAsync(() =>
{
base.StateHasChanged();
});
} }
private string GetClass(string function) private string GetClass(string function)