diff --git a/templates/tpos/tpos.html b/templates/tpos/tpos.html index bace3f8..7535521 100644 --- a/templates/tpos/tpos.html +++ b/templates/tpos/tpos.html @@ -405,29 +405,34 @@
${totalfsat} sat
v-if="invoiceDialog.data" class="q-pa-lg q-pt-xl lnbits__dialog-card" > - - - + + + + + Pay in wallet +

${ amountWithTipFormatted }

-
+
${ fsat } sat ( + ${ tipAmountFormatted } tip)
- + + + NFC supported + + NFC not supported
@click="copyText(invoiceDialog.data.payment_request)" >Copy invoice - Pay in wallet Close
@@ -738,7 +735,7 @@
rowsPerPage: 10 } }, - monochrome: this.$q.localStorage.getItem('lnbits.tpos.color'), + monochrome: this.$q.localStorage.getItem('lnbits.tpos.color') || false, showPoS: true, cartDrawer: this.$q.screen.width > 1200, searchTerm: '', @@ -1036,6 +1033,7 @@
.then(function (response) { dialog.data = response.data dialog.show = true + self.readNfcTag() dialog.dismissMsg = self.$q.notify({ timeout: 0, @@ -1072,11 +1070,8 @@
const self = this if (typeof NDEFReader == 'undefined') { - throw { - toString: function () { - return 'NFC not supported on this device or browser.' - } - } + console.debug('NFC not supported on this device or browser.') + return } const ndef = new NDEFReader()