This commit is contained in:
Andrew Kingston 2022-12-21 09:54:39 +00:00
parent 1d92087000
commit d7a187ae18
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> <Heading size="S">You have no users assigned yet</Heading>
</div> </div>
</Table> </Table>
{#if $usersFetch.hasPrevPage || $usersFetch.hasNextPage} <div class="pagination">
<div class="pagination"> <Pagination
<Pagination page={$usersFetch.pageNumber + 1}
page={$usersFetch.pageNumber + 1} hasPrevPage={$usersFetch.hasPrevPage}
hasPrevPage={$usersFetch.hasPrevPage} hasNextPage={$usersFetch.hasNextPage}
hasNextPage={$usersFetch.hasNextPage} goToPrevPage={$usersFetch.loading ? null : usersFetch.prevPage}
goToPrevPage={$usersFetch.loading ? null : usersFetch.prevPage} goToNextPage={$usersFetch.loading ? null : usersFetch.nextPage}
goToNextPage={$usersFetch.loading ? null : usersFetch.nextPage} />
/> </div>
</div>
{/if}
</Layout> </Layout>
{/if} {/if}