mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-20 21:44:13 +02:00
set focus on amount (#916)
This commit is contained in:
parent
1d55fe1d1a
commit
551c75c2cf
@ -232,6 +232,9 @@ new Vue({
|
||||
generateChart(this.$refs.canvas, this.payments)
|
||||
})
|
||||
},
|
||||
focusInput(el) {
|
||||
this.$nextTick(() => this.$refs[el].focus())
|
||||
},
|
||||
showReceiveDialog: function () {
|
||||
this.receive.show = true
|
||||
this.receive.status = 'pending'
|
||||
@ -243,6 +246,7 @@ new Vue({
|
||||
this.receive.paymentChecker = null
|
||||
this.receive.minMax = [0, 2100000000000000]
|
||||
this.receive.lnurl = null
|
||||
this.focusInput('setAmount')
|
||||
},
|
||||
showParseDialog: function () {
|
||||
this.parse.show = true
|
||||
|
@ -428,6 +428,7 @@
|
||||
:options="receive.units"
|
||||
></q-select>
|
||||
<q-input
|
||||
ref="setAmount"
|
||||
filled
|
||||
dense
|
||||
v-model.number="receive.data.amount"
|
||||
|
Loading…
x
Reference in New Issue
Block a user