Skip to content

Commit

Permalink
Update Logs.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Nov 11, 2024
1 parent baf732b commit 9275e50
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Server.UI/Pages/SystemManagement/Logs.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@page "/system/logs"
@using CleanArchitecture.Blazor.Application.Features.Loggers.Caching
@using CleanArchitecture.Blazor.Application.Features.Loggers.DTOs
@using CleanArchitecture.Blazor.Application.Features.Loggers.Queries.PaginationQuery
@using CleanArchitecture.Blazor.Application.Features.Loggers.Specifications
Expand Down Expand Up @@ -43,17 +44,17 @@
@if (_canPurge)
{
<MudButton
Disabled="@(_clearing)"
OnClick="@(OnPurge)"
StartIcon="@Icons.Material.Outlined.ClearAll">
Disabled="@(_clearing)"
OnClick="@(OnPurge)"
StartIcon="@Icons.Material.Outlined.ClearAll">
@L["Clear Logs"]
</MudButton>
}
</MudToolBar>
<MudStack Row Spacing="1">
<MudEnumSelect TEnum="LogLevel?" Placeholder="@L["Search by level"]" Value="@Query.Level" Clearable="true" ValueChanged="OnChangedLevel" Style="min-width:120px" FullWidth="true"> </MudEnumSelect>
<MudTextField T="string" Style="min-width:120px" ValueChanged="@(OnSearch)" Value="@Query.Keyword" Placeholder="Search" Adornment="Adornment.End"
AdornmentIcon="@Icons.Material.Filled.Search" IconSize="Size.Medium">
AdornmentIcon="@Icons.Material.Filled.Search" IconSize="Size.Medium">
</MudTextField>
</MudStack>
</MudStack>
Expand Down Expand Up @@ -130,7 +131,7 @@

<style>
.mud-table-toolbar {
height: 120px !important;
height: 120px !important;
}
</style>

Expand Down Expand Up @@ -199,6 +200,7 @@
private async Task OnRefresh()
{
Query.Keyword = string.Empty;
LogsCacheKey.Refresh();
await _table.ReloadServerData();
}

Expand Down

0 comments on commit 9275e50

Please sign in to comment.