Skip to content

Commit

Permalink
Copy address tooltip inside Asset fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mpwanyi256 committed Jan 17, 2023
1 parent 855b666 commit cdec67b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/views/Account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@
trigger="hover focus"
placement="top"
:hideOnTargetClick="false"
:delay="{ hide: 1000, show: 200 }"
:delay="tooltipDelay"
>
<button
@click.prevent="copyAddress"
@mouseleave="offsetToolTipDelay"
@mouseenter="setInitialToolTipDelay"
class="btn btn-outline-light"
:id="`${asset}_address_container`"
>
Expand Down Expand Up @@ -161,7 +163,8 @@ export default {
activityData: [],
updatingBalances: false,
address: null,
showPopOver: true
showPopOver: true,
tooltipDelay: { hide: 1000, show: 200 }
}
},
props: ['accountId', 'asset'],
Expand Down Expand Up @@ -245,6 +248,16 @@ export default {
},
applyFilters(filters) {
this.activityData = applyActivityFilters([...this.assetHistory], filters)
},
offsetToolTipDelay() {
this.$nextTick(() => {
this.tooltipDelay = { hide: 0, show: 0 }
})
},
setInitialToolTipDelay() {
this.$nextTick(() => {
this.tooltipDelay = { hide: 1000, show: 200 }
})
}
},
async created() {
Expand Down

0 comments on commit cdec67b

Please sign in to comment.