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
Signed by: sam
GPG key ID: B4EF20DDE721CAA1

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>