revert wallet

This commit is contained in:
dni ⚡ 2024-12-20 08:57:54 +01:00
parent 9e134ceb1f
commit 9dc6832338
No known key found for this signature in database
GPG Key ID: D1F416F29AD26E87

View File

@ -58,7 +58,8 @@ window.app = Vue.createApp({
inkeyHidden: true,
adminkeyHidden: true,
hasNfc: false,
nfcReaderAbortController: null
nfcReaderAbortController: null,
primaryColor: this.$q.localStorage.getItem('lnbits.primaryColor')
}
},
computed: {
@ -651,33 +652,6 @@ window.app = Vue.createApp({
dismissPaymentMsg()
LNbits.utils.notifyApiError(err)
})
},
handleWallet(wallet) {
console.log('Wallet from child:', wallet)
},
fetchPayments() {
return LNbits.api
.getPayments(
this.g.wallet,
'sortby=time&direction=asc&status[ne]=failed'
)
.then(response => {
console.log(response.data.data)
for (let payment of response.data.data) {
record = {
payment_hash: payment.payment_hash,
amount: payment.amount,
description: payment.description,
time: payment.time
}
this.transactions.push(record)
}
console.log(this.transactions)
})
.catch(err => {
this.paymentsTable.loading = false
LNbits.utils.notifyApiError(err)
})
}
},
created() {