|
@ -127,12 +127,6 @@ new Vue({ |
|
|
memo: '' |
|
|
memo: '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
update: { |
|
|
|
|
|
show: false, |
|
|
|
|
|
data: { |
|
|
|
|
|
amount: null |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
send: { |
|
|
send: { |
|
|
show: false, |
|
|
show: false, |
|
|
invoice: null, |
|
|
invoice: null, |
|
@ -247,14 +241,6 @@ new Vue({ |
|
|
paymentChecker: null |
|
|
paymentChecker: null |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
showUpdateDialog: function () { |
|
|
|
|
|
this.update = { |
|
|
|
|
|
show: true, |
|
|
|
|
|
data: { |
|
|
|
|
|
amount: null |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
closeReceiveDialog: function () { |
|
|
closeReceiveDialog: function () { |
|
|
var checker = this.receive.paymentChecker |
|
|
var checker = this.receive.paymentChecker |
|
|
setTimeout(function () { |
|
|
setTimeout(function () { |
|
@ -298,20 +284,6 @@ new Vue({ |
|
|
self.receive.status = 'pending' |
|
|
self.receive.status = 'pending' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
updateBalance: function () { |
|
|
|
|
|
var self = this |
|
|
|
|
|
self.receive.status = 'loading' |
|
|
|
|
|
LNbits.api |
|
|
|
|
|
.updateBalance(self.g.wallet, self.update.data.amount) |
|
|
|
|
|
.then(function (response) { |
|
|
|
|
|
self.fetchPayments() |
|
|
|
|
|
self.update.show = false |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(function (error) { |
|
|
|
|
|
LNbits.utils.notifyApiError(error) |
|
|
|
|
|
self.receive.status = 'pending' |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
decodeQR: function (res) { |
|
|
decodeQR: function (res) { |
|
|
this.send.data.bolt11 = res |
|
|
this.send.data.bolt11 = res |
|
|
this.decodeInvoice() |
|
|
this.decodeInvoice() |
|
|