Compare commits

..
Author SHA1 Message Date
dni ⚡andGitHub 05a244d8fd fix: refresh payments on payment success (#2502)
* fix: refresh payments on payment
2024-05-14 19:22:14 +03:00
dni ⚡andGitHub 019995078c fix: init wallet balance (#2501) 2024-05-14 18:56:57 +03:00
Vlad StanandGitHub f37cb6481c fix: copy invoice (#2500)
* fix: copy invoice
* chore: add mixins
* chore: make bundle
2024-05-14 17:55:45 +02:00
4 changed files with 9 additions and 4 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -83,6 +83,7 @@ function generateChart(canvas, rawData) {
Vue.component('payment-chart', {
name: 'payment-chart',
props: ['wallet'],
mixins: [windowMixin],
data: function () {
return {
paymentsChart: {
@@ -1,6 +1,7 @@
Vue.component('payment-list', {
name: 'payment-list',
props: ['update', 'wallet', 'mobileSimple', 'lazy'],
mixins: [windowMixin],
data: function () {
return {
denomination: LNBITS_DENOMINATION,
+6 -3
View File
@@ -49,7 +49,7 @@ new Vue({
show: false,
location: window.location
},
balance: 0,
balance: parseInt(wallet.balance_msat / 1000),
fiatBalance: 0,
mobileSimple: false,
credit: 0,
@@ -349,9 +349,10 @@ new Vue({
.getPayment(this.g.wallet, response.data.payment_hash)
.then(res => {
if (res.data.paid) {
this.parse.show = false
clearInterval(this.parse.paymentChecker)
dismissPaymentMsg()
clearInterval(this.parse.paymentChecker)
this.updatePayments = !this.updatePayments
this.parse.show = false
}
})
}, 2000)
@@ -359,6 +360,8 @@ new Vue({
.catch(err => {
dismissPaymentMsg()
LNbits.utils.notifyApiError(err)
this.updatePayments = !this.updatePayments
this.parse.show = false
})
},
payLnurl: function () {