feat: add the ability to print qrcodes to <lnbits-qrcode> component (#3664)
This commit is contained in:
@@ -534,7 +534,7 @@ include('components/lnbits-error.vue') %}
|
||||
<q-tab name="bech32" icon="qr_code" label="bech32"></q-tab>
|
||||
<q-tab name="lud17" icon="link" label="url (lud17)"></q-tab>
|
||||
</q-tabs>
|
||||
<lnbits-qrcode :value="lnurl" nfc="true"></lnbits-qrcode>
|
||||
<lnbits-qrcode :value="lnurl" nfc="true" print="true"></lnbits-qrcode>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -44,6 +44,16 @@
|
||||
>
|
||||
<q-tooltip>Write NFC Tag</q-tooltip>
|
||||
</q-btn>
|
||||
<q-btn
|
||||
v-if="print"
|
||||
flat
|
||||
dense
|
||||
class="text-grey"
|
||||
@click="printQrCode()"
|
||||
icon="print"
|
||||
>
|
||||
<q-tooltip>Print</q-tooltip>
|
||||
</q-btn>
|
||||
<q-btn flat dense class="text-grey" icon="download" @click="downloadSVG">
|
||||
<q-tooltip>Download SVG</q-tooltip>
|
||||
</q-btn>
|
||||
|
||||
Reference in New Issue
Block a user