@@ -420,29 +420,34 @@ <h5 class="q-mt-none q-mb-sm">${totalfsat}<small> sat</small></h5>
420
420
v-if ="invoiceDialog.data "
421
421
class ="q-pa-lg q-pt-xl lnbits__dialog-card "
422
422
>
423
- < q-responsive :ratio ="1 " class ="q-mx-xl q-mb-md ">
424
- < lnbits-qrcode
425
- :value ="'lightning:' + invoiceDialog.data.payment_request.toUpperCase() "
426
- :options ="{width: 800} "
427
- class ="rounded-borders "
428
- > </ lnbits-qrcode >
429
- </ q-responsive >
423
+ < a
424
+ :href ="'lightning:' + invoiceDialog.data.payment_request.toUpperCase() "
425
+ target ="_blank "
426
+ rel ="noopener noreferrer "
427
+ >
428
+ < q-responsive :ratio ="1 " class ="q-mx-xl q-mb-md ">
429
+ < lnbits-qrcode
430
+ :value ="'lightning:' + invoiceDialog.data.payment_request.toUpperCase() "
431
+ :options ="{width: 800} "
432
+ class ="rounded-borders "
433
+ > </ lnbits-qrcode >
434
+ </ q-responsive >
435
+ < q-tooltip > Pay in wallet</ q-tooltip >
436
+ </ a >
430
437
< div class ="text-center ">
431
438
< h3 class ="q-my-md "> ${ amountWithTipFormatted }</ h3 >
432
- < h5 class ="q-mt-none ">
439
+ < h5 class ="q-mt-none q-mb-sm ">
433
440
${ fsat }
434
441
< small > sat</ small >
435
442
< span v-show ="tip_options " style ="font-size: 0.75rem "
436
443
> ( + ${ tipAmountFormatted } tip)</ span
437
444
>
438
445
</ h5 >
439
- < q-btn
440
- outline
441
- color ="grey "
442
- icon ="nfc "
443
- @click ="readNfcTag() "
444
- :disable ="nfcTagReading "
445
- > </ q-btn >
446
+ < q-chip v-if ="nfcTagReading " square >
447
+ < q-avatar icon ="nfc " color ="positive " text-color ="white "> </ q-avatar >
448
+ NFC supported
449
+ </ q-chip >
450
+ < span v-else class ="text-caption text-grey "> NFC not supported</ span >
446
451
</ div >
447
452
< div class ="row q-mt-lg ">
448
453
< q-btn
@@ -451,14 +456,6 @@ <h5 class="q-mt-none">
451
456
@click ="copyText(invoiceDialog.data.payment_request) "
452
457
> Copy invoice</ q-btn
453
458
>
454
- < q-btn
455
- outline
456
- color ="grey "
457
- class ="q-ml-md "
458
- type ="a "
459
- :href ="'lightning:'+invoiceDialog.data.payment_request "
460
- > Pay in wallet</ q-btn
461
- >
462
459
< q-btn v-close-popup flat color ="grey " class ="q-ml-auto "> Close</ q-btn >
463
460
</ div >
464
461
</ q-card >
@@ -753,7 +750,7 @@ <h5 class="q-mt-none">
753
750
rowsPerPage : 10
754
751
}
755
752
} ,
756
- monochrome : this . $q . localStorage . getItem ( 'lnbits.tpos.color' ) ,
753
+ monochrome : this . $q . localStorage . getItem ( 'lnbits.tpos.color' ) || false ,
757
754
showPoS : true ,
758
755
cartDrawer : this . $q . screen . width > 1200 ,
759
756
searchTerm : '' ,
@@ -1061,6 +1058,7 @@ <h5 class="q-mt-none">
1061
1058
. then ( function ( response ) {
1062
1059
dialog . data = response . data
1063
1060
dialog . show = true
1061
+ self . readNfcTag ( )
1064
1062
1065
1063
dialog . dismissMsg = self . $q . notify ( {
1066
1064
timeout : 0 ,
@@ -1097,11 +1095,8 @@ <h5 class="q-mt-none">
1097
1095
const self = this
1098
1096
1099
1097
if ( typeof NDEFReader == 'undefined' ) {
1100
- throw {
1101
- toString : function ( ) {
1102
- return 'NFC not supported on this device or browser.'
1103
- }
1104
- }
1098
+ console . debug ( 'NFC not supported on this device or browser.' )
1099
+ return
1105
1100
}
1106
1101
1107
1102
const ndef = new NDEFReader ( )
0 commit comments