Invoice creation UI: Replace input mask with pattern and inputmode (#2623)

* Invoice creation UI. Replace input mask with pattern and inputmode
This commit is contained in:
blackcoffeexbt 2024-08-02 07:26:10 +01:00 committed by GitHub
parent bab399f825
commit 235f8a6c19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -319,13 +319,11 @@
<q-input <q-input
ref="setAmount" ref="setAmount"
filled filled
:pattern="receive.unit === 'sat' ? '\\d*' : '\\d*\\.?\\d*'"
inputmode="numeric"
dense dense
v-model.number="receive.data.amount" v-model.number="receive.data.amount"
:label="$t('amount') + ' (' + receive.unit + ') *'" :label="$t('amount') + ' (' + receive.unit + ') *'"
:mask="receive.unit != 'sat' ? '#.##' : '#'"
fill-mask="0"
reverse-fill-mask
:step="receive.unit != 'sat' ? '0.01' : '1'"
:min="receive.minMax[0]" :min="receive.minMax[0]"
:max="receive.minMax[1]" :max="receive.minMax[1]"
:readonly="receive.lnurl && receive.lnurl.fixed" :readonly="receive.lnurl && receive.lnurl.fixed"