Merge pull request #943 from lnbits/fix/tpos_dismiss_btn

Fix/tpos dismiss btn
This commit is contained in:
Arc 2022-09-13 15:52:51 +01:00 committed by GitHub
commit 6f9ad06449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -138,8 +138,9 @@
hide-dropdown-icon hide-dropdown-icon
input-debounce="0" input-debounce="0"
new-value-mode="add-unique" new-value-mode="add-unique"
label="Tip % Options" label="Tip % Options (hit enter to add values)"
></q-select> ><q-tooltip>Hit enter to add values</q-tooltip></q-select
>
<div class="row q-mt-lg"> <div class="row q-mt-lg">
<q-btn <q-btn
unelevated unelevated

View file

@ -253,7 +253,7 @@
name="check" name="check"
transition-show="fade" transition-show="fade"
class="text-light-green" class="text-light-green"
style="font-size: 40em" style="font-size: min(90vw, 40em)"
></q-icon> ></q-icon>
</q-dialog> </q-dialog>
</q-page> </q-page>
@ -294,6 +294,7 @@
exchangeRate: null, exchangeRate: null,
stack: [], stack: [],
tipAmount: 0.0, tipAmount: 0.0,
hasNFC: false,
nfcTagReading: false, nfcTagReading: false,
invoiceDialog: { invoiceDialog: {
show: false, show: false,
@ -370,7 +371,7 @@
this.showInvoice() this.showInvoice()
}, },
submitForm: function () { submitForm: function () {
if (this.tip_options.length) { if (this.tip_options && this.tip_options.length) {
this.showTipModal() this.showTipModal()
} else { } else {
this.showInvoice() this.showInvoice()
@ -413,9 +414,6 @@
dialog.show = false dialog.show = false
self.complete.show = true self.complete.show = true
setTimeout(function () {
self.complete.show = false
}, 5000)
} }
}) })
}, 3000) }, 3000)