Update for IBC transfer.

This commit is contained in:
liangping 2021-12-05 10:30:00 +08:00
parent 838971bbbe
commit 543118ba92
2 changed files with 10 additions and 4 deletions

View File

@ -8,7 +8,7 @@
ok-title="Send"
hide-header-close
scrollable
:ok-disabled="!address"
:ok-disabled="!address || channels.length === 0"
@hidden="resetModal"
@ok="handleOk"
@show="loadBalance"
@ -18,8 +18,12 @@
>
<template #overlay>
<div class="text-center">
<b-spinner
type="grow"
variant="danger"
/>
<p>
IBC Module is not enabled.
This feature is only for experts
</p>
</div>
</template>
@ -290,7 +294,7 @@
import { ValidationProvider, ValidationObserver } from 'vee-validate'
import {
BModal, BRow, BCol, BInputGroup, BInputGroupAppend, BFormInput, BAvatar, BFormGroup, BFormSelect, BFormSelectOption,
BForm, BFormRadioGroup, BFormRadio, BInputGroupPrepend, BFormCheckbox, BOverlay,
BForm, BFormRadioGroup, BFormRadio, BInputGroupPrepend, BFormCheckbox, BOverlay, BSpinner,
} from 'bootstrap-vue'
import {
required, email, url, between, alpha, integer, password, min, digits, alphaDash, length,
@ -321,6 +325,7 @@ export default {
BFormRadioGroup,
BFormRadio,
BFormCheckbox,
BSpinner,
vSelect,
BOverlay,
@ -413,6 +418,7 @@ export default {
},
loadBalance() {
this.destination = null
this.channels = []
this.token = ''
this.account = this.computeAccount()
if (this.account && this.account.length > 0) this.address = this.account[0].addr

View File

@ -51,7 +51,7 @@
</b-button>
<b-button
v-b-modal.ibc-transfer-window
variant="success"
variant="danger"
size="sm"
><feather-icon
icon="SendIcon"