fix: paylinks in fiat (#101)

* fix unreachable code
* trying to fix fiat pay links
* don't drop support for python 3.10
* values are store as int when there's currency
* simplify js
* add hint for fiat denom
This commit is contained in:
Tiago Vasconcelos 2025-08-21 09:29:32 +01:00 committed by GitHub
commit a242f0e4b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 125 additions and 23 deletions

View file

@ -196,6 +196,7 @@
type="number"
:step="formDialog.data.currency && formDialog.data.currency !== 'satoshis' ? '0.01' : '1'"
:label="formDialog.fixedAmount ? 'Amount *' : 'Min *'"
:hint="formDialog.data.currency && fiatRates[formDialog.data.currency] && formDialog.data.min ? `approx. ${parseInt(Math.round(formDialog.data.min * fiatRates[formDialog.data.currency]))} sat` : ''"
></q-input>
<q-input
v-if="!formDialog.fixedAmount"
@ -205,8 +206,8 @@
type="number"
:step="formDialog.data.currency && formDialog.data.currency !== 'satoshis' ? '0.01' : '1'"
label="Max *"
>
</q-input>
:hint="formDialog.data.currency && fiatRates[formDialog.data.currency] && formDialog.data.max ? `approx. ${parseInt(Math.round(formDialog.data.max * fiatRates[formDialog.data.currency]))} sat` : ''"
></q-input>
</div>
<div class="row q-col-gutter-sm">
<div class="col">