LNURLp: Write NFC tags with LNURL-pay links (#766)

* NFC for LNURL-pay

* notification ui improvements
This commit is contained in:
calle
2022-07-21 12:38:30 +02:00
committed by GitHub
parent 45c356cf6c
commit 76a5196dbf
4 changed files with 71 additions and 10 deletions
@@ -237,7 +237,7 @@ new Vue({
if (typeof NDEFReader == 'undefined') {
throw {
toString: function () {
return 'NFC not supported on this device and/or browser.'
return 'NFC not supported on this device or browser.'
}
}
}
@@ -246,7 +246,7 @@ new Vue({
this.nfcTagWriting = true
this.$q.notify({
message: 'Tap your NFC tag now to write the LNURLw to it'
message: 'Tap your NFC tag to write the LNURL-withdraw link to it.'
})
await ndef.write({
@@ -255,12 +255,16 @@ new Vue({
this.nfcTagWriting = false
this.$q.notify({
message: 'NFC Tag written successfully!'
type: 'positive',
message: 'NFC Tag written successfully.'
})
} catch (error) {
this.nfcTagWriting = false
this.$q.notify({
message: error ? error.toString() : 'An unexpected error has occurred'
type: 'negative',
message: error
? error.toString()
: 'An unexpected error has occurred.'
})
}
},