Merge branch 're-implement-operation-modal' of https://github.com/ping-pub/explorer into re-implement-operation-modal

This commit is contained in:
liangping
2022-04-04 22:51:03 +08:00
12 changed files with 67 additions and 116 deletions
@@ -137,6 +137,7 @@ export default {
if (res.code === 0) {
this.succeed = true
clearInterval(this.timer)
window.location.reload()
} else if (res.code !== 3) { // code 3 is tx unconfirmed(not founded).
this.error = res.raw_log
clearInterval(this.timer)
@@ -151,7 +151,7 @@ export default {
availableAddress: [],
validators: [],
unbundValidators: [],
selectedValidator: null,
selectedValidator: this.validatorAddress,
token: '',
amount: null,
selectedChain: '',
@@ -1,6 +1,6 @@
<template>
<b-modal
id="operation-modal"
:id="modalId"
centered
size="md"
:title="modalTitle"
@@ -216,6 +216,10 @@ export default {
type: String,
default: '',
},
modalId: {
type: String,
default: 'operation-modal',
},
validatorAddress: {
type: String,
default: null,