fix: handle no input signed scenario
This commit is contained in:
parent
40ca51af0e
commit
337234cb0c
2 changed files with 13 additions and 1 deletions
|
|
@ -423,10 +423,21 @@ async function serialSigner(path) {
|
||||||
},
|
},
|
||||||
handleSignResponse: function (res = '') {
|
handleSignResponse: function (res = '') {
|
||||||
this.hww.signingPsbt = false
|
this.hww.signingPsbt = false
|
||||||
this.updateSignedPsbt(res)
|
const [count, psbt] = res.trim().split(' ')
|
||||||
|
if (!psbt || !count || count.trim() === '0') {
|
||||||
|
this.$q.notify({
|
||||||
|
type: 'warning',
|
||||||
|
message: 'No input signed!',
|
||||||
|
caption: 'Are you using the right seed?',
|
||||||
|
timeout: 10000
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.updateSignedPsbt(psbt)
|
||||||
this.$q.notify({
|
this.$q.notify({
|
||||||
type: 'positive',
|
type: 'positive',
|
||||||
message: 'Transaction Signed',
|
message: 'Transaction Signed',
|
||||||
|
message: `Inputs signed: ${count}`,
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -191,6 +191,7 @@
|
||||||
label="Account Extended Public Key; xpub, ypub, zpub; Bitcoin Descriptor"
|
label="Account Extended Public Key; xpub, ypub, zpub; Bitcoin Descriptor"
|
||||||
></q-input>
|
></q-input>
|
||||||
<q-select
|
<q-select
|
||||||
|
v-if="!formDialog.useSerialPort"
|
||||||
filled
|
filled
|
||||||
dense
|
dense
|
||||||
emit-value
|
emit-value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue