mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-21 22:32:44 +02:00
fix: refresh payments on payment success (#2502)
* fix: refresh payments on payment
This commit is contained in:
parent
019995078c
commit
05a244d8fd
@ -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…
x
Reference in New Issue
Block a user