improve validation of gdd send amount input field

This commit is contained in:
Moriz Wahl 2021-06-08 16:37:31 +02:00
parent 42bca07bf7
commit 483c5d2618
2 changed files with 6 additions and 4 deletions

View File

@ -97,7 +97,7 @@ export default {
methods: {
setTransaction(data) {
data.target_date = new Date(Date.now()).toISOString()
this.transactionData = { ...data }
this.transactionData = data
this.currentTransactionStep = 1
},
async sendTransaction() {

View File

@ -52,9 +52,9 @@
<validation-provider
:name="$t('form.amount')"
:rules="{
required: true,
double: [2, $i18n.locale === 'de' ? ',' : '.'],
between: [0.01, balance],
required: true,
numeric: true,
between: [0.01, balance],
}"
v-slot="{ errors }"
>
@ -80,6 +80,8 @@
type="number"
:lang="$i18n.locale"
:placeholder="$n(0.01)"
min="0.01"
:max="balance"
step="0.01"
style="font-size: xx-large; padding-left: 20px"
></b-form-input>