Skip to content

Commit 562139b

Browse files
committed
Fix address transactions pagination
1 parent 99a8285 commit 562139b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

components/modules/address/AddressOverview.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,12 @@ const handleOpenQRModal = () => {
638638
639639
<Flex v-else direction="column" align="center" justify="center" gap="8" :class="$style.empty">
640640
<Text size="13" weight="600" color="secondary" align="center"> No transactions </Text>
641-
<Text size="12" weight="500" height="160" color="tertiary" align="center" style="max-width: 220px">
641+
<Text v-if="page === 1" size="12" weight="500" height="160" color="tertiary" align="center" style="max-width: 220px">
642642
This address did not signed any transactions
643643
</Text>
644+
<Text v-else size="12" weight="500" height="160" color="tertiary" align="center" style="max-width: 220px">
645+
This address did not signed any more transactions
646+
</Text>
644647
</Flex>
645648
</template>
646649
@@ -670,11 +673,11 @@ const handleOpenQRModal = () => {
670673
</Flex>
671674
672675
<!-- Pagination -->
673-
<Flex v-if="transactions.length" align="center" gap="6" :class="$style.pagination">
674-
<Button @click="page = 1" type="secondary" size="mini" :disabled="page === 1 || transactions.length !== 10">
676+
<Flex v-if="transactions.length || page !== 1" align="center" gap="6" :class="$style.pagination">
677+
<Button @click="page = 1" type="secondary" size="mini" :disabled="page === 1">
675678
<Icon name="arrow-left-stop" size="12" color="primary" />
676679
</Button>
677-
<Button type="secondary" @click="handlePrev" size="mini" :disabled="page === 1 || transactions.length !== 10">
680+
<Button type="secondary" @click="handlePrev" size="mini" :disabled="page === 1">
678681
<Icon name="arrow-left" size="12" color="primary" />
679682
</Button>
680683

0 commit comments

Comments
 (0)