Skip to content

Commit

Permalink
Remove pager when 0 recs and timestamp when none
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed May 25, 2024
1 parent 8ad7802 commit 4f4280f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions TMTurboRecords/TMTurboRecords.Client/Components/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@
</TemplateColumn>
</Columns>
<PagerContent>
<MudDataGridPager T="RankedRecord" />
@if (Records.Count > 0)
{
<MudDataGridPager T="RankedRecord" />
}
</PagerContent>
</MudDataGrid>
<MudTable Dense="true" T="(string, PlatformResponse)" Items="@PlatformResponses.Select(x => (x.Key, x.Value))" Breakpoint="Breakpoint.None">
Expand All @@ -151,7 +154,12 @@
<RowTemplate>
<MudTd DataLabel="Platform">@context.Item1</MudTd>
<MudTd DataLabel="Records">@context.Item2.Count</MudTd>
<MudTd DataLabel="Timestamp"><BlazorTime.ToLocal DateTime="@context.Item2.Timestamp.GetValueOrDefault().UtcDateTime" /></MudTd>
<MudTd DataLabel="Timestamp">
@if (context.Item2.Timestamp.HasValue)
{
<BlazorTime.ToLocal DateTime="@context.Item2.Timestamp.Value.UtcDateTime" />
}
</MudTd>
<MudTd DataLabel="Details">@context.Item2.Error</MudTd>
</RowTemplate>
<FooterContent>
Expand Down

0 comments on commit 4f4280f

Please sign in to comment.