mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-19 14:45:41 +01:00
fix
This commit is contained in:
parent
8bc7fe6916
commit
fd0dbf5395
@ -290,8 +290,7 @@
|
|||||||
</q-scroll-area>
|
</q-scroll-area>
|
||||||
|
|
||||||
<q-tabs
|
<q-tabs
|
||||||
class="lt-md fixed-bottom q-px-none q-py-sm left-0 right-0 bg-primary text-white shadow-2 z-top"
|
class="lt-md fixed-bottom q-px-none q-py-xs left-0 right-0 bg-primary text-white shadow-2 z-top q-px-0"
|
||||||
active-class="px-0"
|
|
||||||
align="justify"
|
align="justify"
|
||||||
indicator-color="transparent"
|
indicator-color="transparent"
|
||||||
>
|
>
|
||||||
@ -476,7 +475,6 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
:disable="payInvoiceData.data.request == ''"
|
:disable="payInvoiceData.data.request == ''"
|
||||||
type="submit"
|
type="submit"
|
||||||
flat
|
|
||||||
>Continue</q-btn
|
>Continue</q-btn
|
||||||
>
|
>
|
||||||
<q-btn unelevated icon="photo_camera" label="Scan" class="q-ml-auto" @click="showCamera"> </q-btn>
|
<q-btn unelevated icon="photo_camera" label="Scan" class="q-ml-auto" @click="showCamera"> </q-btn>
|
||||||
@ -595,7 +593,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
>Copy invoice</q-btn
|
>Copy invoice</q-btn
|
||||||
>
|
>
|
||||||
<q-btn v-else flat color="primary" @click="requestMintButton" :disable="!invoiceData.amount > 0"
|
<q-btn v-else color="primary" @click="requestMintButton" :disable="!invoiceData.amount > 0"
|
||||||
>Create Invoice</q-btn
|
>Create Invoice</q-btn
|
||||||
>
|
>
|
||||||
<q-btn v-close-popup flat color="grey" class="q-ml-auto"
|
<q-btn v-close-popup flat color="grey" class="q-ml-auto"
|
||||||
@ -664,7 +662,6 @@
|
|||||||
:disable="sendData.amount == null || sendData.amount <= 0"
|
:disable="sendData.amount == null || sendData.amount <= 0"
|
||||||
@click="sendTokens"
|
@click="sendTokens"
|
||||||
color="primary"
|
color="primary"
|
||||||
flat
|
|
||||||
type="submit"
|
type="submit"
|
||||||
>Send Tokens</q-btn
|
>Send Tokens</q-btn
|
||||||
>
|
>
|
||||||
@ -706,7 +703,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row q-mt-lg">
|
<div class="row q-mt-lg">
|
||||||
<q-btn @click="redeem" flat color="primary"
|
<q-btn @click="redeem" color="primary"
|
||||||
>Receive Tokens</q-btn
|
>Receive Tokens</q-btn
|
||||||
>
|
>
|
||||||
<q-btn v-close-popup flat color="grey" class="q-ml-auto"
|
<q-btn v-close-popup flat color="grey" class="q-ml-auto"
|
||||||
@ -1400,8 +1397,8 @@
|
|||||||
try {
|
try {
|
||||||
nInterval += 1
|
nInterval += 1
|
||||||
|
|
||||||
// exit loop after 5m
|
// exit loop after 2m
|
||||||
if (nInterval > 100) {
|
if (nInterval > 40) {
|
||||||
console.log("### stopping invoice check worker")
|
console.log("### stopping invoice check worker")
|
||||||
clearInterval(this.invoiceCheckListener)
|
clearInterval(this.invoiceCheckListener)
|
||||||
}
|
}
|
||||||
@ -1813,8 +1810,8 @@
|
|||||||
try {
|
try {
|
||||||
nInterval += 1
|
nInterval += 1
|
||||||
|
|
||||||
// exit loop after 5m
|
// exit loop after 2m
|
||||||
if (nInterval > 100) {
|
if (nInterval > 24) {
|
||||||
console.log("### stopping token check worker")
|
console.log("### stopping token check worker")
|
||||||
clearInterval(this.tokensCheckSpendableListener)
|
clearInterval(this.tokensCheckSpendableListener)
|
||||||
}
|
}
|
||||||
@ -1833,7 +1830,7 @@
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('not paid yet')
|
console.log('not paid yet')
|
||||||
}
|
}
|
||||||
}, 3000)
|
}, 5000)
|
||||||
},
|
},
|
||||||
|
|
||||||
checkTokenSpendable: async function(token, verbose=true) {
|
checkTokenSpendable: async function(token, verbose=true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user