This commit is contained in:
callebtc
2022-11-05 07:42:39 +01:00
committed by dni ⚡
parent 3a987739ab
commit 5d6d9ca956

View File

@@ -1158,6 +1158,7 @@ page_container %}
clearInterval(this.invoiceCheckListener) clearInterval(this.invoiceCheckListener)
this.invoiceData.bolt11 = '' this.invoiceData.bolt11 = ''
this.showInvoiceDetails = false this.showInvoiceDetails = false
navigator.vibrate(200)
this.$q.notify({ this.$q.notify({
timeout: 5000, timeout: 5000,
type: 'positive', type: 'positive',
@@ -1437,6 +1438,12 @@ page_container %}
const proofs = JSON.parse(tokensJson) const proofs = JSON.parse(tokensJson)
const amount = proofs.reduce((s, t) => (s += t.amount), 0) const amount = proofs.reduce((s, t) => (s += t.amount), 0)
let {fristProofs, scndProofs} = await this.split(proofs, amount) let {fristProofs, scndProofs} = await this.split(proofs, amount)
navigator.vibrate(200)
this.$q.notify({
timeout: 5000,
type: 'positive',
message: 'Tokens received'
})
} catch (error) { } catch (error) {
console.error(error) console.error(error)
LNbits.utils.notifyApiError(error) LNbits.utils.notifyApiError(error)
@@ -1457,6 +1464,7 @@ page_container %}
this.sendData.tokens = scndProofs this.sendData.tokens = scndProofs
console.log('### this.sendData.tokens', this.sendData.tokens) console.log('### this.sendData.tokens', this.sendData.tokens)
this.sendData.tokensBase64 = btoa(JSON.stringify(this.sendData.tokens)) this.sendData.tokensBase64 = btoa(JSON.stringify(this.sendData.tokens))
navigator.vibrate(200)
}, },
checkFees: async function (payment_request) { checkFees: async function (payment_request) {
const payload = { const payload = {
@@ -1512,6 +1520,7 @@ page_container %}
'', '',
payload payload
) )
navigator.vibrate(200)
this.$q.notify({ this.$q.notify({
timeout: 5000, timeout: 5000,
type: 'positive', type: 'positive',