fix: refresh payments on payment success (#2502)
* fix: refresh payments on payment
This commit is contained in:
parent
019995078c
commit
05a244d8fd
1 changed files with 5 additions and 2 deletions
|
|
@ -349,9 +349,10 @@ new Vue({
|
||||||
.getPayment(this.g.wallet, response.data.payment_hash)
|
.getPayment(this.g.wallet, response.data.payment_hash)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.data.paid) {
|
if (res.data.paid) {
|
||||||
this.parse.show = false
|
|
||||||
clearInterval(this.parse.paymentChecker)
|
|
||||||
dismissPaymentMsg()
|
dismissPaymentMsg()
|
||||||
|
clearInterval(this.parse.paymentChecker)
|
||||||
|
this.updatePayments = !this.updatePayments
|
||||||
|
this.parse.show = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, 2000)
|
}, 2000)
|
||||||
|
|
@ -359,6 +360,8 @@ new Vue({
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
dismissPaymentMsg()
|
dismissPaymentMsg()
|
||||||
LNbits.utils.notifyApiError(err)
|
LNbits.utils.notifyApiError(err)
|
||||||
|
this.updatePayments = !this.updatePayments
|
||||||
|
this.parse.show = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
payLnurl: function () {
|
payLnurl: function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue