mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-19 14:21:50 +01:00
revert wallet
This commit is contained in:
parent
9e134ceb1f
commit
9dc6832338
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user