✨ Added pagination to pixabay importer
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -300,7 +300,9 @@
|
||||
"upload_video": "Upload Video",
|
||||
"visit_pixabay": "Visit Pixabay",
|
||||
"images_by_pixabay": "Images provided by Pixabay",
|
||||
"search_english_only": "The search works in English only"
|
||||
"search_english_only": "The search works in English only",
|
||||
"next_page": "Next page",
|
||||
"previous_page": "Previous page"
|
||||
},
|
||||
"avatar_settings": {
|
||||
"skin_color": "Skin color",
|
||||
|
||||
Reference in New Issue
Block a user