feat: hide panels after transaction is broadcast

This commit is contained in:
Vlad Stan
2022-08-03 13:50:01 +03:00
parent 63424d1ca4
commit f102928812
3 changed files with 39 additions and 30 deletions
@@ -563,8 +563,6 @@ new Vue({
}
},
broadcastTransaction: async function () {
console.log('### broadcastTransaction', this.payment.signedTxHex)
try {
const wallet = this.g.user.wallets[0]
const {data} = await LNbits.api.request(
@@ -574,12 +572,21 @@ new Vue({
{tx_hex: this.payment.signedTxHex}
)
this.payment.sentTxId = data
this.$q.notify({
type: 'positive',
message: 'Transaction broadcasted!',
caption: `${data}`,
timeout: 10000
})
this.hww.psbtSent = false
this.payment.psbtBase64Signed = null
this.payment.signedTxHex = null
this.payment.signedTx = null
this.payment.psbtBase64 = null
await this.scanAddressWithAmount()
} catch (error) {
this.payment.sentTxId = null
this.$q.notify({