fixed pagination in payouts
This commit is contained in:
parent
e412092a4d
commit
7eea76a798
@ -3,7 +3,7 @@
|
|||||||
export let pageChangedCallback;
|
export let pageChangedCallback;
|
||||||
export let disableButtons;
|
export let disableButtons;
|
||||||
export let css;
|
export let css;
|
||||||
let currentPage = 1;
|
export let currentPage = 1;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="join">
|
<div class="join">
|
||||||
|
|||||||
@ -77,7 +77,6 @@
|
|||||||
numOfPagesPayouts = result.data.pages === 0 ? 1 : result.data?.pages;
|
numOfPagesPayouts = result.data.pages === 0 ? 1 : result.data?.pages;
|
||||||
disablePagesPayouts = false;
|
disablePagesPayouts = false;
|
||||||
} else {
|
} else {
|
||||||
currentPagePayouts = 1;
|
|
||||||
let s = searchFilter.trim();
|
let s = searchFilter.trim();
|
||||||
let useUUID = s.includes("-") && s.length === 36;
|
let useUUID = s.includes("-") && s.length === 36;
|
||||||
if (useUUID) {
|
if (useUUID) {
|
||||||
@ -532,6 +531,8 @@
|
|||||||
<div class="flex gap-[5px]">
|
<div class="flex gap-[5px]">
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
numOfPagesPayouts = 1;
|
||||||
|
currentPagePayouts = 1;
|
||||||
getPayouts();
|
getPayouts();
|
||||||
}}
|
}}
|
||||||
class="btn btn-neutral rounded-[10px]"
|
class="btn btn-neutral rounded-[10px]"
|
||||||
@ -571,6 +572,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="w-full flex flex-col justify-center items-center mt-2">
|
<div class="w-full flex flex-col justify-center items-center mt-2">
|
||||||
<Pagination
|
<Pagination
|
||||||
|
currentPage={currentPagePayouts}
|
||||||
totalPages={numOfPagesPayouts}
|
totalPages={numOfPagesPayouts}
|
||||||
pageChangedCallback={(n) => {
|
pageChangedCallback={(n) => {
|
||||||
currentPagePayouts = n;
|
currentPagePayouts = n;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user