add link to account detail
This commit is contained in:
parent
390d123681
commit
2c40847f24
@ -129,10 +129,18 @@
|
|||||||
</b-card>
|
</b-card>
|
||||||
<b-card
|
<b-card
|
||||||
border-variant="primary"
|
border-variant="primary"
|
||||||
:title="`${walletName} Assets`"
|
|
||||||
bg-variant="transparent"
|
bg-variant="transparent"
|
||||||
class="shadow-none"
|
class="shadow-none"
|
||||||
>
|
>
|
||||||
|
<b-card-title class="d-flex justify-content-between">
|
||||||
|
<span>{{ walletName }} Assets </span>
|
||||||
|
<b-link
|
||||||
|
v-if="address"
|
||||||
|
:to="`./${chain}/account/${address}`"
|
||||||
|
>
|
||||||
|
More
|
||||||
|
</b-link>
|
||||||
|
</b-card-title>
|
||||||
<b-row>
|
<b-row>
|
||||||
<b-col
|
<b-col
|
||||||
lg="3"
|
lg="3"
|
||||||
@ -243,6 +251,7 @@ export default {
|
|||||||
walletStaking: '-',
|
walletStaking: '-',
|
||||||
walletRewards: '-',
|
walletRewards: '-',
|
||||||
walletUnbonding: '-',
|
walletUnbonding: '-',
|
||||||
|
address: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -323,6 +332,7 @@ export default {
|
|||||||
return '-'
|
return '-'
|
||||||
},
|
},
|
||||||
fetchAccount(address) {
|
fetchAccount(address) {
|
||||||
|
this.address = address
|
||||||
this.$http.getBankAccountBalance(address).then(bal => {
|
this.$http.getBankAccountBalance(address).then(bal => {
|
||||||
this.walletBalances = this.formatToken(bal)
|
this.walletBalances = this.formatToken(bal)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user