Skip to content

Commit 0ec14ed

Browse files
committed
Small fixes before release
1 parent c9d5d80 commit 0ec14ed

File tree

4 files changed

+37
-13
lines changed

4 files changed

+37
-13
lines changed

components/AddressBadge.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,49 @@ defineProps({
44
type: String,
55
required: true,
66
},
7+
color: {
8+
type: String,
9+
default: "primary"
10+
}
711
})
812
</script>
913

1014
<template>
1115
<NuxtLink :to="`/address/${hash}`" @click.stop>
1216
<Flex align="center" gap="6">
1317
<template v-if="hash.startsWith('celestiavaloper')">
14-
<Text size="13" weight="600" color="primary"> celestiavaloper </Text>
18+
<Text size="13" weight="600" :color="color"> celestiavaloper </Text>
1519

1620
<Flex align="center" gap="3">
1721
<div v-for="dot in 3" class="dot" />
1822
</Flex>
1923

20-
<Text size="13" weight="600" color="primary">
24+
<Text size="13" weight="600" :color="color">
2125
{{ hash.slice(hash.length - 4, hash.length) }}
2226
</Text>
2327
</template>
2428
<template v-else-if="hash.startsWith('celestiavalcons')">
25-
<Text size="13" weight="600" color="primary"> celestiavalcons </Text>
29+
<Text size="13" weight="600" :color="color"> celestiavalcons </Text>
2630

2731
<Flex align="center" gap="3">
2832
<div v-for="dot in 3" class="dot" />
2933
</Flex>
3034

31-
<Text size="13" weight="600" color="primary">
35+
<Text size="13" weight="600" :color="color">
3236
{{ hash.slice(hash.length - 4, hash.length) }}
3337
</Text>
3438
</template>
3539
<template v-else>
36-
<Text size="13" weight="600" color="primary"> celestia </Text>
40+
<Text size="13" weight="600" :color="color"> celestia </Text>
3741

3842
<Flex align="center" gap="3">
3943
<div v-for="dot in 3" class="dot" />
4044
</Flex>
4145

42-
<Text size="13" weight="600" color="primary">
46+
<Text size="13" weight="600" :color="color">
4347
{{ hash.slice(hash.length - 4, hash.length) }}
4448
</Text>
4549
</template>
4650
</Flex>
4751
</NuxtLink>
48-
</template>
52+
</template>

components/modules/block/BlockOverview.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -731,11 +731,11 @@ const handleViewRawTransactions = () => {
731731
</Flex>
732732

733733
<!-- Pagination -->
734-
<Flex v-if="transactions.length < 10" align="center" gap="6" :class="$style.pagination">
735-
<Button @click="page = 1" type="secondary" size="mini" :disabled="page === 1 || transactions.length !== 10">
734+
<Flex v-if="transactions.length" align="center" gap="6" :class="$style.pagination">
735+
<Button @click="page = 1" type="secondary" size="mini" :disabled="page === 1">
736736
<Icon name="arrow-left-stop" size="12" color="primary" />
737737
</Button>
738-
<Button type="secondary" @click="handlePrev" size="mini" :disabled="page === 1 || transactions.length !== 10">
738+
<Button type="secondary" @click="handlePrev" size="mini" :disabled="page === 1">
739739
<Icon name="arrow-left" size="12" color="primary" />
740740
</Button>
741741

components/modules/tx/TxOverview.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import MessageTypeBadge from "@/components/shared/MessageTypeBadge.vue"
1212
import MessagesTable from "@/components/modules/tx/MessagesTable.vue"
1313
1414
/** Services */
15-
import { comma, tia } from "@/services/utils"
15+
import { comma, splitAddress, tia } from "@/services/utils"
1616
1717
/** API */
1818
import { fetchTxMessages } from "@/services/api/tx"
@@ -231,6 +231,15 @@ const handleViewRawTransaction = () => {
231231
<Flex direction="column" gap="16">
232232
<Text size="12" weight="600" color="secondary">Details</Text>
233233

234+
<Flex align="center" justify="between">
235+
<Text size="12" weight="600" color="tertiary"> Signer</Text>
236+
<Flex align="center" gap="6">
237+
<AddressBadge :hash="tx.signers[0]" color="secondary" />
238+
239+
<CopyButton :text="tx.signers[0]" />
240+
</Flex>
241+
<!-- <Text size="12" weight="600" color="secondary"> {{ splitAddress(tx.signers[0]) }} </Text> -->
242+
</Flex>
234243
<Flex align="center" justify="between">
235244
<Text size="12" weight="600" color="tertiary"> Events</Text>
236245
<Text size="12" weight="600" color="secondary"> {{ tx.events_count }} </Text>

pages/txs.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Checkbox from "@/components/ui/Checkbox.vue"
1313
import MessageTypeBadge from "@/components/shared/MessageTypeBadge.vue"
1414
1515
/** Services */
16-
import { comma, space, tia } from "@/services/utils"
16+
import { comma, space, splitAddress, tia } from "@/services/utils"
1717
import { MsgTypes } from "@/services/constants/messages"
1818
1919
/** API */
@@ -203,6 +203,7 @@ const config = reactive({
203203
columns: {
204204
time: true,
205205
messages: true,
206+
signer: true,
206207
block: true,
207208
gas: true,
208209
fee: true,
@@ -490,6 +491,9 @@ const handleNext = () => {
490491
<Checkbox v-model="config.columns.messages">
491492
<Text size="12" weight="500" color="primary">Messages</Text>
492493
</Checkbox>
494+
<Checkbox v-model="config.columns.signer">
495+
<Text size="12" weight="500" color="primary">Signer</Text>
496+
</Checkbox>
493497
<Checkbox v-model="config.columns.block">
494498
<Text size="12" weight="500" color="primary">Block</Text>
495499
</Checkbox>
@@ -627,6 +631,13 @@ const handleNext = () => {
627631
</Flex>
628632
</NuxtLink>
629633
</td>
634+
<td v-if="config.columns.signer" style="width: 1px">
635+
<NuxtLink :to="`/tx/${tx.hash}`">
636+
<Flex align="center">
637+
<Text size="13" weight="600" color="primary"> {{ splitAddress(tx.signers[0]) }} </Text>
638+
</Flex>
639+
</NuxtLink>
640+
</td>
630641
<td v-if="config.columns.block" style="width: 1px">
631642
<NuxtLink :to="`/tx/${tx.hash}`">
632643
<Flex align="center">
@@ -702,7 +713,7 @@ const handleNext = () => {
702713

703714
<style module>
704715
.wrapper {
705-
max-width: calc(var(--base-width) + 48px);
716+
max-width: calc(var(--base-width) + 124px);
706717
707718
padding: 40px 24px 60px 24px;
708719
}

0 commit comments

Comments
 (0)