forked from cerc-io/cosmos-explorer
Update for IBC transfer.
This commit is contained in:
parent
838971bbbe
commit
543118ba92
@ -8,7 +8,7 @@
|
|||||||
ok-title="Send"
|
ok-title="Send"
|
||||||
hide-header-close
|
hide-header-close
|
||||||
scrollable
|
scrollable
|
||||||
:ok-disabled="!address"
|
:ok-disabled="!address || channels.length === 0"
|
||||||
@hidden="resetModal"
|
@hidden="resetModal"
|
||||||
@ok="handleOk"
|
@ok="handleOk"
|
||||||
@show="loadBalance"
|
@show="loadBalance"
|
||||||
@ -18,8 +18,12 @@
|
|||||||
>
|
>
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
<b-spinner
|
||||||
|
type="grow"
|
||||||
|
variant="danger"
|
||||||
|
/>
|
||||||
<p>
|
<p>
|
||||||
IBC Module is not enabled.
|
This feature is only for experts
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -290,7 +294,7 @@
|
|||||||
import { ValidationProvider, ValidationObserver } from 'vee-validate'
|
import { ValidationProvider, ValidationObserver } from 'vee-validate'
|
||||||
import {
|
import {
|
||||||
BModal, BRow, BCol, BInputGroup, BInputGroupAppend, BFormInput, BAvatar, BFormGroup, BFormSelect, BFormSelectOption,
|
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'
|
} from 'bootstrap-vue'
|
||||||
import {
|
import {
|
||||||
required, email, url, between, alpha, integer, password, min, digits, alphaDash, length,
|
required, email, url, between, alpha, integer, password, min, digits, alphaDash, length,
|
||||||
@ -321,6 +325,7 @@ export default {
|
|||||||
BFormRadioGroup,
|
BFormRadioGroup,
|
||||||
BFormRadio,
|
BFormRadio,
|
||||||
BFormCheckbox,
|
BFormCheckbox,
|
||||||
|
BSpinner,
|
||||||
vSelect,
|
vSelect,
|
||||||
BOverlay,
|
BOverlay,
|
||||||
|
|
||||||
@ -413,6 +418,7 @@ export default {
|
|||||||
},
|
},
|
||||||
loadBalance() {
|
loadBalance() {
|
||||||
this.destination = null
|
this.destination = null
|
||||||
|
this.channels = []
|
||||||
this.token = ''
|
this.token = ''
|
||||||
this.account = this.computeAccount()
|
this.account = this.computeAccount()
|
||||||
if (this.account && this.account.length > 0) this.address = this.account[0].addr
|
if (this.account && this.account.length > 0) this.address = this.account[0].addr
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
</b-button>
|
</b-button>
|
||||||
<b-button
|
<b-button
|
||||||
v-b-modal.ibc-transfer-window
|
v-b-modal.ibc-transfer-window
|
||||||
variant="success"
|
variant="danger"
|
||||||
size="sm"
|
size="sm"
|
||||||
><feather-icon
|
><feather-icon
|
||||||
icon="SendIcon"
|
icon="SendIcon"
|
||||||
|
Loading…
Reference in New Issue
Block a user