From 543118ba92b3b344b4358e6a92a03f9f93ccf20a Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 5 Dec 2021 10:30:00 +0800 Subject: [PATCH] Update for IBC transfer. --- src/views/OperationTransfer2Component.vue | 12 +++++++++--- src/views/WalletAccountDetail.vue | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/OperationTransfer2Component.vue b/src/views/OperationTransfer2Component.vue index 319fa71e..748ca8c0 100644 --- a/src/views/OperationTransfer2Component.vue +++ b/src/views/OperationTransfer2Component.vue @@ -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 @@ > @@ -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 diff --git a/src/views/WalletAccountDetail.vue b/src/views/WalletAccountDetail.vue index a9257140..adffee9f 100644 --- a/src/views/WalletAccountDetail.vue +++ b/src/views/WalletAccountDetail.vue @@ -51,7 +51,7 @@