mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-25 11:14:02 +02:00
hide nfc button if not supported on device, per issue #907
This commit is contained in:
@@ -16,6 +16,7 @@ new Vue({
|
||||
return {
|
||||
toggleAdvanced: false,
|
||||
nfcTagReading: false,
|
||||
nfcSupported: typeof NDEFReader != 'undefined',
|
||||
lnurlLink: `${window.location.host}/boltcards/api/v1/scan/`,
|
||||
cards: [],
|
||||
hits: [],
|
||||
|
@@ -251,7 +251,7 @@
|
||||
>
|
||||
</q-input>
|
||||
<div class="row">
|
||||
<div class="col-10">
|
||||
<div v-bind:class="{'col-10': nfcSupported, 'col-12': !nfcSupported}">
|
||||
<q-input
|
||||
filled
|
||||
dense
|
||||
@@ -265,7 +265,7 @@
|
||||
>
|
||||
</q-input>
|
||||
</div>
|
||||
<div class="col-2 q-pl-sm">
|
||||
<div class="col-2 q-pl-sm" v-if="nfcSupported">
|
||||
<q-btn
|
||||
outline
|
||||
disable
|
||||
|
Reference in New Issue
Block a user