order flush fix
This commit is contained in:
@@ -16,18 +16,14 @@
|
||||
</tbody>
|
||||
</v-table>
|
||||
-->
|
||||
<btn icon='mdi-plus' color="green" :disabled="disabled" @click="gib" :text="text"/>
|
||||
<btn icon='mdi-plus' color="green" :disabled="!s.vault||disabled" @click="gib" :text="text"/>
|
||||
<!-- </v-card-item>-->
|
||||
<!-- </div>-->
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {useStore} from "@/store/store";
|
||||
import PhoneCard from "@/components/PhoneCard.vue";
|
||||
import {ethers} from "ethers";
|
||||
import {computed, ref} from "vue";
|
||||
import {pendTransaction} from "@/blockchain/wallet.js";
|
||||
import {mockErc20Abi} from "@/blockchain/abi.js";
|
||||
import Btn from "@/components/Btn.vue";
|
||||
import {socket} from "@/socket.js";
|
||||
import {metadata} from "@/version.js";
|
||||
@@ -82,7 +78,7 @@ function gib() {
|
||||
if (Object.keys(tokenAmounts).length>0) {
|
||||
disabled.value = true
|
||||
socket.emit('gib', s.chainId, s.account, s.vault, tokenAmounts )
|
||||
setTimeout(()=>disabled.value=false, 1*1000) // todo disable longer
|
||||
setTimeout(()=>disabled.value=false, 60_000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user