This commit is contained in:
Georges KABBOUCHI 2021-08-18 23:27:43 +03:00
parent ae6a4a7a81
commit c872ebe59c
2 changed files with 4 additions and 2 deletions

View File

@ -100,16 +100,18 @@
<script>
import { defineComponent, nextTick, ref } from '@nuxtjs/composition-api'
import { useModal } from '~/composables/useModal'
import { useNetwork } from '~/composables/useNetwork'
import { useTenderly } from '~/composables/useTenderly'
export default defineComponent({
setup() {
const show = ref(false)
const { networks, activeNetworkId, activeNetwork, checkForNetworkMismatch } = useNetwork()
const { stopSimulation } = useTenderly()
const setActiveNetwork = async networkId => {
await stopSimulation()
activeNetworkId.value = networkId;
show.value = false
await nextTick()

View File

@ -80,7 +80,7 @@
</button>
</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
v-if="forkId"
@click="stopSimulation"