mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-28 13:42:42 +02:00
chore: code format
This commit is contained in:
@@ -259,31 +259,31 @@ new Vue({
|
|||||||
this.parse.camera.show = false
|
this.parse.camera.show = false
|
||||||
},
|
},
|
||||||
updateBalance: function (credit) {
|
updateBalance: function (credit) {
|
||||||
LNbits.api
|
LNbits.api
|
||||||
.request(
|
.request(
|
||||||
'PUT',
|
'PUT',
|
||||||
'/admin/api/v1/topup/?usr=' + this.g.user.id,
|
'/admin/api/v1/topup/?usr=' + this.g.user.id,
|
||||||
this.g.user.wallets[0].adminkey,
|
this.g.user.wallets[0].adminkey,
|
||||||
{
|
{
|
||||||
amount: credit,
|
amount: credit,
|
||||||
id: this.g.user.wallets[0].id
|
id: this.g.user.wallets[0].id
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.$q.notify({
|
this.$q.notify({
|
||||||
type: 'positive',
|
type: 'positive',
|
||||||
message:
|
message:
|
||||||
'Success! Added ' +
|
'Success! Added ' +
|
||||||
credit +
|
credit +
|
||||||
' sats to ' +
|
' sats to ' +
|
||||||
this.g.user.wallets[0].id,
|
this.g.user.wallets[0].id,
|
||||||
icon: null
|
icon: null
|
||||||
});
|
|
||||||
this.balance += parseInt(credit);
|
|
||||||
})
|
})
|
||||||
.catch(function (error) {
|
this.balance += parseInt(credit)
|
||||||
LNbits.utils.notifyApiError(error)
|
})
|
||||||
});
|
.catch(function (error) {
|
||||||
|
LNbits.utils.notifyApiError(error)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
closeReceiveDialog: function () {
|
closeReceiveDialog: function () {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
Reference in New Issue
Block a user