feat: add page buttons below member list too

This commit is contained in:
Sam 2023-04-24 17:03:05 +02:00
parent 6f7eb5eeee
commit 6ae6ea5496
No known key found for this signature in database
GPG Key ID: B4EF20DDE721CAA1
1 changed files with 13 additions and 0 deletions

View File

@ -241,6 +241,19 @@
<PartialMemberCard user={data} {member} /> <PartialMemberCard user={data} {member} />
{/each} {/each}
</div> </div>
{#if totalPages > 1}
<div class="text-center">
<ButtonGroup>
<Button on:click={prevPage} disabled={memberPage === 0}
><Icon name="chevron-left" /> Previous page</Button
>
<Button disabled>Page {memberPage + 1}/{totalPages}</Button>
<Button on:click={nextPage} disabled={memberPage === totalPages - 1}
>Next page <Icon name="chevron-right" /></Button
>
</ButtonGroup>
</div>
{/if}
{:else} {:else}
<div> <div>
<p> <p>