hide nfc button if not supported on device, per issue #907

This commit is contained in:
Lee Salminen 2022-08-30 08:06:05 -06:00
parent 7a7413bb6f
commit ad60c1614e
2 changed files with 3 additions and 2 deletions

View file

@ -16,6 +16,7 @@ new Vue({
return { return {
toggleAdvanced: false, toggleAdvanced: false,
nfcTagReading: false, nfcTagReading: false,
nfcSupported: typeof NDEFReader != 'undefined',
lnurlLink: `${window.location.host}/boltcards/api/v1/scan/`, lnurlLink: `${window.location.host}/boltcards/api/v1/scan/`,
cards: [], cards: [],
hits: [], hits: [],

View file

@ -251,7 +251,7 @@
> >
</q-input> </q-input>
<div class="row"> <div class="row">
<div class="col-10"> <div v-bind:class="{'col-10': nfcSupported, 'col-12': !nfcSupported}">
<q-input <q-input
filled filled
dense dense
@ -265,7 +265,7 @@
> >
</q-input> </q-input>
</div> </div>
<div class="col-2 q-pl-sm"> <div class="col-2 q-pl-sm" v-if="nfcSupported">
<q-btn <q-btn
outline outline
disable disable