Get wallets
This commit is contained in:
parent
6f42413107
commit
ae5d45a73e
1 changed files with 9 additions and 3 deletions
|
|
@ -398,7 +398,7 @@
|
||||||
this.g.user.wallets[0].inkey
|
this.g.user.wallets[0].inkey
|
||||||
)
|
)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
|
console.log(response.data)
|
||||||
for (i = 0; i < response.data.length; i++) {
|
for (i = 0; i < response.data.length; i++) {
|
||||||
self.walletLinks.push(response.data[i].id)
|
self.walletLinks.push(response.data[i].id)
|
||||||
}
|
}
|
||||||
|
|
@ -487,6 +487,9 @@
|
||||||
} else {
|
} else {
|
||||||
this.createCharge(wallet, data)
|
this.createCharge(wallet, data)
|
||||||
}
|
}
|
||||||
|
this.getCharges()
|
||||||
|
this.formDialogCharge.show = false
|
||||||
|
this.formDialogCharge.data = null
|
||||||
},
|
},
|
||||||
updateCharge: function (wallet, data) {
|
updateCharge: function (wallet, data) {
|
||||||
var self = this
|
var self = this
|
||||||
|
|
@ -528,9 +531,10 @@
|
||||||
LNbits.api
|
LNbits.api
|
||||||
.request('POST', '/satspay/api/v1/charge', wallet, data)
|
.request('POST', '/satspay/api/v1/charge', wallet, data)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
|
this.formDialogCharge.show = false
|
||||||
|
this.formDialogCharge.data = null
|
||||||
self.ChargeLinks.push(mapCharge(response.data))
|
self.ChargeLinks.push(mapCharge(response.data))
|
||||||
self.formDialogCharge.show = false
|
|
||||||
self.formDialogCharge.data = null
|
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
.catch(function (error) {
|
||||||
LNbits.utils.notifyApiError(error)
|
LNbits.utils.notifyApiError(error)
|
||||||
|
|
@ -624,6 +628,8 @@
|
||||||
var self = this
|
var self = this
|
||||||
var getCharges = this.getCharges
|
var getCharges = this.getCharges
|
||||||
getCharges()
|
getCharges()
|
||||||
|
var getWalletLinks = this.getWalletLinks
|
||||||
|
getWalletLinks()
|
||||||
var getBalance = this.getBalance
|
var getBalance = this.getBalance
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
for (i = 0; i < self.ChargeLinks.length; i++) {
|
for (i = 0; i < self.ChargeLinks.length; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue