0
1
Fork 0

eprf: add max value

This commit is contained in:
Javier Segarra 2024-08-19 12:38:45 +02:00
parent f821b8689a
commit 462a8a3cf8
1 changed files with 10 additions and 2 deletions

View File

@ -54,10 +54,17 @@ const onConfirmPay = async () => {
<Teleport :to="$actions"> <Teleport :to="$actions">
<div class="balance"> <div class="balance">
<span class="label">{{ t('balance') }}</span> <span class="label">{{ t('balance') }}</span>
<span class="amount" :class="{ negative: debt < 0 }"> <span
class="amount"
:class="{ negative: debt < 0 }"
>
{{ currency(debt || 0) }} {{ currency(debt || 0) }}
</span> </span>
<QIcon name="info" class="info" size="sm"> <QIcon
name="info"
class="info"
size="sm"
>
<QTooltip max-width="450px"> <QTooltip max-width="450px">
{{ t('paymentInfo') }} {{ t('paymentInfo') }}
</QTooltip> </QTooltip>
@ -134,6 +141,7 @@ const onConfirmPay = async () => {
class="full-width" class="full-width"
type="number" type="number"
min="0" min="0"
:max="debt * -1"
/> />
</template> </template>
</VnConfirm> </VnConfirm>