push before removing uuid

This commit is contained in:
ben
2022-08-24 09:33:38 +01:00
parent c10f89e1d6
commit 59d6b654c5
3 changed files with 44 additions and 4 deletions
+25 -2
View File
@@ -17,6 +17,7 @@ new Vue({
toggleAdvanced: false,
cards: [],
hits: [],
refunds: [],
cardDialog: {
show: false,
data: {
@@ -164,6 +165,23 @@ new Vue({
console.log(self.hits)
})
},
getRefunds: function () {
var self = this
LNbits.api
.request(
'GET',
'/boltcards/api/v1/refunds?all_wallets=true',
this.g.user.wallets[0].inkey
)
.then(function (response) {
self.refunds = response.data.map(function (obj) {
obj.card_name = self.cards.find(d => d.id == obj.card_id).card_name
return mapCards(obj)
})
console.log(self.hits)
})
},
openQrCodeDialog(cardId) {
var card = _.findWhere(this.cards, {id: cardId})
@@ -177,8 +195,13 @@ new Vue({
}
this.qrCodeDialog.show = true
},
generateKeys: function () {
addCardOpen: function () {
this.cardDialog.show = true
var elem = this.$els.myBtn
elem.click()
},
generateKeys: function () {
const genRanHex = size =>
[...Array(size)]
.map(() => Math.floor(Math.random() * 16).toString(16))
@@ -307,7 +330,7 @@ new Vue({
if (this.g.user.wallets.length) {
this.getCards()
this.getHits()
this.getWithdraws()
this.getRefunds()
}
}
})