forked from cerc-io/cosmos-explorer
add link to right menu
This commit is contained in:
parent
b3d780f4ed
commit
540264a080
@ -17,11 +17,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- Left Col -->
|
<!-- Left Col -->
|
||||||
<div class="bookmark-wrapper align-items-center flex-grow-1 d-none d-lg-flex">
|
<div class="bookmark-wrapper align-items-center flex-grow-1 d-none d-lg-flex" />
|
||||||
|
|
||||||
<!-- Bookmarks Container -->
|
|
||||||
<bookmarks />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<b-navbar-nav class="nav align-items-center ml-auto">
|
<b-navbar-nav class="nav align-items-center ml-auto">
|
||||||
<dark-Toggler class="d-none d-lg-block" />
|
<dark-Toggler class="d-none d-lg-block" />
|
||||||
|
@ -110,6 +110,7 @@
|
|||||||
v-for="(item,k) in accounts"
|
v-for="(item,k) in accounts"
|
||||||
:key="k"
|
:key="k"
|
||||||
:disabled="!item.address"
|
:disabled="!item.address"
|
||||||
|
:to="`/${selected_chain.chain_name}/account/${item.address.addr}`"
|
||||||
@click="updateDefaultWallet(item.wallet)"
|
@click="updateDefaultWallet(item.wallet)"
|
||||||
>
|
>
|
||||||
<div class="d-flex flex-column">
|
<div class="d-flex flex-column">
|
||||||
|
@ -646,6 +646,23 @@ export default {
|
|||||||
this.error = err
|
this.error = err
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
beforeRouteUpdate(to, from, next) {
|
||||||
|
// const { address } = this.$route.params
|
||||||
|
const { address } = to.params
|
||||||
|
if (address !== from.params.hash) {
|
||||||
|
this.address = address
|
||||||
|
this.$http.getAuthAccount(this.address).then(acc => {
|
||||||
|
this.account = acc
|
||||||
|
this.initial()
|
||||||
|
this.$http.getTxsBySender(this.address).then(res => {
|
||||||
|
this.transactions = res
|
||||||
|
})
|
||||||
|
}).catch(err => {
|
||||||
|
this.error = err
|
||||||
|
})
|
||||||
|
next()
|
||||||
|
}
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const elem = document.getElementById('txevent')
|
const elem = document.getElementById('txevent')
|
||||||
elem.addEventListener('txcompleted', () => {
|
elem.addEventListener('txcompleted', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user