Only show pagination if more than 1 page
This commit is contained in:
parent
5e237a8e23
commit
c2a6da0b83
@ -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>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user