Fixed "Load more" functionality on search page

The previous implementation caused the "Load more" button not to load
additional search results when changes were made to the input field
This commit is contained in:
itepechi 2024-04-21 05:49:22 +09:00
parent b2d30e5c34
commit 76b44d3a39
Signed by: itepechi
GPG Key ID: D948CE1B5ACD0B25
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@
<button
v-if="!loading['statuses'] && loadedInitially && lastStatusFetchCount > 0"
class="more-statuses-button button-unstyled -link -fullwidth"
@click.prevent="search(searchTerm, 'statuses')"
@click.prevent="search(lastQuery, 'statuses')"
>
<div class="new-status-notification text-center">
{{ $t('search.load_more') }}
@ -114,7 +114,7 @@
<button
v-if="!loading['media'] && loadedInitially && lastMediaFetchCount > 0"
class="more-statuses-button button-unstyled -link -fullwidth"
@click.prevent="search(searchTerm, 'media')"
@click.prevent="search(lastQuery, 'media')"
>
<div class="new-status-notification text-center">
{{ $t('search.load_more') }}