add link to right menu
This commit is contained in:
parent
b3d780f4ed
commit
540264a080
@ -17,11 +17,7 @@
|
||||
</ul>
|
||||
|
||||
<!-- Left Col -->
|
||||
<div class="bookmark-wrapper align-items-center flex-grow-1 d-none d-lg-flex">
|
||||
|
||||
<!-- Bookmarks Container -->
|
||||
<bookmarks />
|
||||
</div>
|
||||
<div class="bookmark-wrapper align-items-center flex-grow-1 d-none d-lg-flex" />
|
||||
|
||||
<b-navbar-nav class="nav align-items-center ml-auto">
|
||||
<dark-Toggler class="d-none d-lg-block" />
|
||||
|
@ -110,6 +110,7 @@
|
||||
v-for="(item,k) in accounts"
|
||||
:key="k"
|
||||
:disabled="!item.address"
|
||||
:to="`/${selected_chain.chain_name}/account/${item.address.addr}`"
|
||||
@click="updateDefaultWallet(item.wallet)"
|
||||
>
|
||||
<div class="d-flex flex-column">
|
||||
|
@ -646,6 +646,23 @@ export default {
|
||||
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() {
|
||||
const elem = document.getElementById('txevent')
|
||||
elem.addEventListener('txcompleted', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user