@@ -374,8 +427,14 @@ page_container %}
invoice: '',
bolt11: ''
},
+ sendData: {
+ amount: 0,
+ memo: '',
+ tokens: ''
+ },
showInvoiceDetails: false,
showPayInvoice: false,
+ showSendTokens: false,
tokens: [],
tab: 'tokens',
@@ -797,6 +856,13 @@ page_container %}
this.showPayInvoice = true
},
+ showSendTokensDialog: function () {
+ this.sendData.tokens = ''
+ this.sendData.amount = 0
+ this.sendData.memo = ''
+ this.showSendTokens = true
+ },
+
requestInvoice: async function () {
try {
const {data} = await LNbits.api.request(
@@ -892,6 +958,10 @@ page_container %}
await this.fetchPromisesFromMint(paymentHash, newTokens.newTokens)
},
+ buildAnsShowTokens: async function () {
+ this.sendData.tokens = 'toookeeens:' + this.sendData.amount
+ },
+
buildTokens: async function (amounts, paymentHash) {
const blindedMessages = []
const secrets = []