Payments added to chart (#2952)
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -237,6 +237,9 @@ window.app.component('payment-list', {
|
|||||||
update() {
|
update() {
|
||||||
this.fetchPayments()
|
this.fetchPayments()
|
||||||
},
|
},
|
||||||
|
'g.updatePayments'() {
|
||||||
|
this.fetchPayments()
|
||||||
|
},
|
||||||
'g.wallet': {
|
'g.wallet': {
|
||||||
handler(newWallet) {
|
handler(newWallet) {
|
||||||
this.fetchPayments()
|
this.fetchPayments()
|
||||||
|
|||||||
@@ -230,12 +230,12 @@ window.WalletPageLogic = {
|
|||||||
this.receive.lnurl && this.receive.lnurl.callback
|
this.receive.lnurl && this.receive.lnurl.callback
|
||||||
)
|
)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
this.g.updatePayments = !this.g.updatePayments
|
||||||
this.receive.status = 'success'
|
this.receive.status = 'success'
|
||||||
this.receive.paymentReq = response.data.bolt11
|
this.receive.paymentReq = response.data.bolt11
|
||||||
this.receive.amountMsat = response.data.amount
|
this.receive.amountMsat = response.data.amount
|
||||||
this.receive.paymentHash = response.data.payment_hash
|
this.receive.paymentHash = response.data.payment_hash
|
||||||
this.readNfcTag()
|
this.readNfcTag()
|
||||||
|
|
||||||
// TODO: lnurl_callback and lnurl_response
|
// TODO: lnurl_callback and lnurl_response
|
||||||
// WITHDRAW
|
// WITHDRAW
|
||||||
if (response.data.lnurl_response !== null) {
|
if (response.data.lnurl_response !== null) {
|
||||||
@@ -261,13 +261,13 @@ window.WalletPageLogic = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hack as rendering in dialog causes reactivity issues. Does speed up, as only rendering lnbits-qrcode once.
|
// Hack as rendering in dialog causes reactivity issues. Does speed up, as only rendering lnbits-qrcode once.
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.invoiceQrCode = document.getElementById(
|
this.invoiceQrCode = document.getElementById(
|
||||||
'hiddenQrCodeContainer'
|
'hiddenQrCodeContainer'
|
||||||
).innerHTML
|
).innerHTML
|
||||||
})
|
})
|
||||||
this.g.updatePayments = !this.g.updatePayments
|
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
LNbits.utils.notifyApiError(err)
|
LNbits.utils.notifyApiError(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user