From 20f787e1b8dcf41e6dc3ee9f46781bb7d6ef0a39 Mon Sep 17 00:00:00 2001 From: donne <503124742@qq.com> Date: Sun, 3 Apr 2022 23:54:53 +0800 Subject: [PATCH] add transaction result --- .../OperationModal/TransactionResult.vue | 153 ++++++++++++++++++ src/views/components/OperationModal/index.vue | 29 +++- 2 files changed, 179 insertions(+), 3 deletions(-) create mode 100644 src/views/components/OperationModal/TransactionResult.vue diff --git a/src/views/components/OperationModal/TransactionResult.vue b/src/views/components/OperationModal/TransactionResult.vue new file mode 100644 index 00000000..46a88a86 --- /dev/null +++ b/src/views/components/OperationModal/TransactionResult.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/src/views/components/OperationModal/index.vue b/src/views/components/OperationModal/index.vue index d1a28649..c195f7ce 100644 --- a/src/views/components/OperationModal/index.vue +++ b/src/views/components/OperationModal/index.vue @@ -5,8 +5,10 @@ size="md" :title="modalTitle" :ok-title="actionName" - hide-header-close scrollable + :hide-header-close="!showResult" + :hide-footer="showResult" + modal-class="custom-transaction-modal" :ok-disabled="isOwner" @hidden="resetModal" @ok="handleOk" @@ -35,7 +37,10 @@ - + + {{ error }} - {{ error }} + + + + toggle + @@ -162,6 +172,7 @@ import IBCTransfer from './components/IBCTransfer.vue' import Vote from './components/Vote.vue' import WithdrawCommission from './components/WithdrawCommission.vue' import GovDeposit from './components/GovDeposit.vue' +import TransactionResult from './TransactionResult.vue' export default { name: 'DelegateDialogue', @@ -196,6 +207,7 @@ export default { Vote, WithdrawCommission, GovDeposit, + TransactionResult, }, directives: { Ripple, @@ -243,6 +255,7 @@ export default { memo: '', blockingMsg: this.address ? 'You are not the owner' : 'No available account found.', actionName: 'Send', + showResult: false, required, password, @@ -402,4 +415,14 @@ export default {