update: make a same result txs check to validator page

- router link height in account

Signed-off-by: Salman Wahib <sxlmnwb@sxlzptprjkt.xyz>
This commit is contained in:
Salman Wahib 2023-04-26 18:00:46 +00:00
parent 75f3665aa0
commit bbb28de0d4
2 changed files with 5 additions and 2 deletions

View File

@ -260,7 +260,7 @@ loadAccount(props.address)
</thead>
<tbody>
<tr v-for="v in txs">
<td>{{ v.height }} </td>
<td class="text-sm text-primary"><RouterLink :to="`/${chain}/block/${v.height}`">{{ v.height }}</RouterLink></td>
<td class="text-truncate" style="max-width: 200px;">{{ v.txhash }} </td>
<td>
{{ format.messages(v.tx.body.messages) }}

View File

@ -256,7 +256,10 @@ onMounted(()=> {
<tr v-for="(item, i) in txs.tx_responses">
<td class="text-sm text-primary"><RouterLink :to="`/${props.chain}/block/${item.height}`">{{ item.height }}</RouterLink></td>
<td class="text-truncate" style="max-width: 200px;">{{ item.txhash }}</td>
<td>{{ format.messages(item.tx.body.messages) }}</td>
<td>
{{ format.messages(item.tx.body.messages) }}
<VIcon v-if="item.code === 0" icon="mdi-check" color="success"></VIcon>
<VIcon v-else icon="mdi-multiply" color="error"></VIcon> </td>
<td width="150">{{ format.toDay(item.timestamp,'from') }}</td>
</tr>
</tbody>