-
- Payment Sent
-
+
+
+ Rescan
-
-
- Outgoing payment pending
-
+
+ History
+
+
+ View Coins
-
-
+
+
+
Note:
+
+
+
+
+ Update
+
+
+
+
+
+
+
+ {{props.row.error}}
+
+
+
+
+
+ Gap limit of 20 addresses exceeded. Other wallets might not
+ detect funds at this address.
+
+
+
+ -->
{% endraw %}
@@ -623,6 +610,7 @@ page_container %}
mintId: '',
mintName: '',
+ tokenBuys: [],
buyTokens: {
showDialog: false,
amount: 0,
@@ -713,9 +701,9 @@ page_container %}
formattedBalance: function () {
return this.balance / 100
},
- tokenBuys: function() {
- return []
- },
+ // tokenBuys: function() {
+ // return []
+ // },
canPay: function () {
if (!this.parse.invoice) return false
@@ -973,8 +961,11 @@ page_container %}
`/cashu/api/v1/cashu/${this.mintId}/mint?amount=${this.buyTokens.amount}`
)
console.log('### data', data)
+
this.buyTokens.bolt11 = data.pr
this.buyTokens.hash = data.hash
+ this.tokenBuys.push({...this.buyTokens, date: new Date().toISOString()})
+ localStorage.setItem('cashu.tokenBuys', JSON.stringify(this.tokenBuys))
} catch (error) {
LNbits.utils.notifyApiError(error)
}
@@ -1027,6 +1018,9 @@ page_container %}
} else if (this.$q.localStorage.getItem('cashu.name')) {
this.mintName = this.$q.localStorage.getItem('cashu.name')
}
+
+ this.tokenBuys = JSON.parse(localStorage.getItem('cashu.tokenBuys') || '[]')
+ console.log('#### this.tokenBuys', this.tokenBuys)
console.log('#### this.mintId', this.mintId)
console.log('#### this.mintName', this.mintName)
}