mirror of
https://github.com/lnbits/lnbits.git
synced 2025-08-02 15:02:21 +02:00
vibrate
This commit is contained in:
@@ -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',
|
||||||
|
Reference in New Issue
Block a user