fix: search page pageination doesn't work

This commit is contained in:
James Xylight committed 2025-06-25 17:24:26 -07:00
1 parent f21b843cb5
commit eb6e4c59e0
2 files changed
+5 -4

No files matched your search

@@ -88,7 +88,7 @@
}} }}
> >
<Icon src={Square2Stack} mini size="16" /> <Icon src={Square2Stack} mini size="16" />
<div>{$t('comment.actions.link')}</div> <div>{$t('post.actions.more.share')}</div>
</MenuButton> </MenuButton>
{#if profile.data?.jwt} {#if profile.data?.jwt}
{#if comment.creator.id == profile.data.user?.local_user_view.person.id} {#if comment.creator.id == profile.data.user?.local_user_view.person.id}
+4 -3
View File
@@ -36,8 +36,6 @@
let searchElement: HTMLInputElement | undefined = $state() let searchElement: HTMLInputElement | undefined = $state()
let form = $state<HTMLFormElement>() let form = $state<HTMLFormElement>()
let pageNum = $state(data.filters.value.page)
let moreOptions = $state(false) let moreOptions = $state(false)
</script> </script>
@@ -200,6 +198,9 @@
</div> </div>
<div class="mt-4"></div> <div class="mt-4"></div>
{#if data.results.value.length > 0} {#if data.results.value.length > 0}
<Pageination bind:page={pageNum} href={page => `?page=${page}`} /> <Pageination
bind:page={data.filters.value.page}
href={page => `?page=${page}`}
/>
{/if} {/if}
{/if} {/if}