LNURLp: Write NFC tags with LNURL-pay links (#766)
* NFC for LNURL-pay * notification ui improvements
This commit is contained in:
@@ -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.'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user