This commit is contained in:
Andrew Kingston 2022-12-21 09:54:39 +00:00
parent 285f11eca5
commit 1e522d6696
1 changed files with 9 additions and 11 deletions

View File

@ -181,17 +181,15 @@
<Heading size="S">You have no users assigned yet</Heading>
</div>
</Table>
{#if $usersFetch.hasPrevPage || $usersFetch.hasNextPage}
<div class="pagination">
<Pagination
page={$usersFetch.pageNumber + 1}
hasPrevPage={$usersFetch.hasPrevPage}
hasNextPage={$usersFetch.hasNextPage}
goToPrevPage={$usersFetch.loading ? null : usersFetch.prevPage}
goToNextPage={$usersFetch.loading ? null : usersFetch.nextPage}
/>
</div>
{/if}
<div class="pagination">
<Pagination
page={$usersFetch.pageNumber + 1}
hasPrevPage={$usersFetch.hasPrevPage}
hasNextPage={$usersFetch.hasNextPage}
goToPrevPage={$usersFetch.loading ? null : usersFetch.prevPage}
goToNextPage={$usersFetch.loading ? null : usersFetch.nextPage}
/>
</div>
</Layout>
{/if}