mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
fixes
This commit is contained in:
parent
ae6a4a7a81
commit
c872ebe59c
|
@ -100,16 +100,18 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { defineComponent, nextTick, ref } from '@nuxtjs/composition-api'
|
import { defineComponent, nextTick, ref } from '@nuxtjs/composition-api'
|
||||||
import { useModal } from '~/composables/useModal'
|
|
||||||
import { useNetwork } from '~/composables/useNetwork'
|
import { useNetwork } from '~/composables/useNetwork'
|
||||||
|
import { useTenderly } from '~/composables/useTenderly'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
setup() {
|
setup() {
|
||||||
const show = ref(false)
|
const show = ref(false)
|
||||||
|
|
||||||
const { networks, activeNetworkId, activeNetwork, checkForNetworkMismatch } = useNetwork()
|
const { networks, activeNetworkId, activeNetwork, checkForNetworkMismatch } = useNetwork()
|
||||||
|
const { stopSimulation } = useTenderly()
|
||||||
|
|
||||||
const setActiveNetwork = async networkId => {
|
const setActiveNetwork = async networkId => {
|
||||||
|
await stopSimulation()
|
||||||
activeNetworkId.value = networkId;
|
activeNetworkId.value = networkId;
|
||||||
show.value = false
|
show.value = false
|
||||||
await nextTick()
|
await nextTick()
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="canSimulate" class="fixed bottom-0 left-0 ml-10 mb-16">
|
<div v-if="active && canSimulate" class="fixed bottom-0 left-0 ml-10 mb-16">
|
||||||
<button
|
<button
|
||||||
v-if="forkId"
|
v-if="forkId"
|
||||||
@click="stopSimulation"
|
@click="stopSimulation"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user