fix: search page pageination doesn't work
This commit is contained in:
2 files changed
+5
-4
No files matched your search
@@ -88,7 +88,7 @@
|
||||
}}
|
||||
>
|
||||
<Icon src={Square2Stack} mini size="16" />
|
||||
<div>{$t('comment.actions.link')}</div>
|
||||
<div>{$t('post.actions.more.share')}</div>
|
||||
</MenuButton>
|
||||
{#if profile.data?.jwt}
|
||||
{#if comment.creator.id == profile.data.user?.local_user_view.person.id}
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
let searchElement: HTMLInputElement | undefined = $state()
|
||||
let form = $state<HTMLFormElement>()
|
||||
|
||||
let pageNum = $state(data.filters.value.page)
|
||||
|
||||
let moreOptions = $state(false)
|
||||
</script>
|
||||
|
||||
@@ -200,6 +198,9 @@
|
||||
</div>
|
||||
<div class="mt-4"></div>
|
||||
{#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}
|
||||
Reference in new issue
Block a user