1
0
mirror of synced 2025-01-19 00:04:05 +01:00

Only show pagination if more than 1 page

This commit is contained in:
shiibe 2024-06-04 22:48:11 -04:00
parent 5e237a8e23
commit c2a6da0b83

View File

@ -76,9 +76,12 @@
</MudTd>
</RowTemplate>
<PagerContent>
<div class="d-flex flex-column align-center">
<MudPagination Class="pa-4" Count="@TotalPages" Selected="currentPage" SelectedChanged="(page) => OnPageChange(page)" BoundaryCount="1" MiddleCount="3" />
</div>
@if (TotalPages > 1)
{
<div class="d-flex flex-column align-center">
<MudPagination Class="pa-4" Count="@TotalPages" Selected="currentPage" SelectedChanged="(page) => OnPageChange(page)" BoundaryCount="1" MiddleCount="3" />
</div>
}
</PagerContent>
</MudTable>
}