update: add routerlink to transaction

Signed-off-by: Salman Wahib <sxlmnwb@sxlzptprjkt.xyz>
This commit is contained in:
Salman Wahib 2023-05-16 09:48:41 +00:00
parent 8f1561dd74
commit fb028faeb1
4 changed files with 15 additions and 7 deletions

View File

@ -458,8 +458,10 @@ loadAccount(props.address);
v.height
}}</RouterLink>
</td>
<td class="text-truncate py-3" style="max-width: 200px">
<td class="text-truncate text-primary py-3" style="max-width: 200px">
<RouterLink :to="`/${chain}/tx/${v.txhash}`">
{{ v.txhash }}
</RouterLink>
</td>
<td class="flex items-center py-3">
<div class="mr-2">

View File

@ -71,8 +71,12 @@ const format = useFormatter();
</thead>
<tbody >
<tr v-for="(item,index) in base.txsInRecents" :index="index">
<td>{{ item.height }}</td>
<td class="text-xs truncate" width="50%">
<td class="text-sm text-primary">
<RouterLink
:to="`/${props.chain}/block/${item.height}`"
>{{ item.height }}</RouterLink
></td>
<td class="truncate text-primary" width="50%">
<RouterLink :to="`/${props.chain}/tx/${item.hash}`">{{
item.hash
}}</RouterLink>

View File

@ -397,8 +397,10 @@ onMounted(() => {
item.height
}}</RouterLink>
</td>
<td class="text-truncate" style="max-width: 200px">
<td class="text-truncate text-primary" style="max-width: 200px">
<RouterLink :to="`/${props.chain}/tx/${item.txhash}`">
{{ item.txhash }}
</RouterLink>
</td>
<td>
<div class="flex items-center">

View File

@ -39,7 +39,7 @@ const messages = computed(() => {
</tr>
<tr>
<td>Height</td>
<td>
<td class="text-primary">
<RouterLink
:to="`/${props.chain}/block/${tx.tx_response.height}`"
>{{ tx.tx_response.height }}</RouterLink
@ -55,12 +55,12 @@ const messages = computed(() => {
tx.tx_response.code === 0 ? 'success' : 'error'
}`"
>
<span
<VCard
class="inset-x-0 inset-y-0 opacity-10 absolute"
:class="`bg-${
tx.tx_response.code === 0 ? 'success' : 'error'
}`"
></span>
></VCard>
{{ tx.tx_response.code === 0 ? 'Success' : 'Failded' }}
</div>
</td>