Added pagination to pixabay importer

This commit is contained in:
Mawoka
2023-06-30 12:11:27 +02:00
parent 8597c776a6
commit c21360c510
3 changed files with 20 additions and 2 deletions
@@ -93,6 +93,22 @@
>
</div>
{/each}
<div class="flex gap-2">
<BrownButton
disabled={page < 2}
on:click={() => {
page -= 1;
fetched_data = fetch_data();
}}
>{$t('uploader.previous_page')}
</BrownButton>
<BrownButton
on:click={() => {
page += 1;
fetched_data = fetch_data();
}}>{$t('uploader.next_page')}</BrownButton
>
</div>
</div>
</div>
{/if}