ver "0.5.9"

Saldo ora comprende anche le transazioni Pendenti (e le visualizza)
This commit is contained in:
Paolo Arena
2022-09-18 01:20:48 +02:00
parent f625278801
commit da17c2b060
26 changed files with 148 additions and 32 deletions

View File

@@ -35,7 +35,7 @@ export default defineComponent({
const from_username = ref(userStore.my.username)
const circuitsel = ref('')
const qty = ref('')
const qty = ref(<number>1)
const causal = ref('')
const bothcircuits = ref(<any>[])
@@ -86,11 +86,12 @@ export default defineComponent({
const quanti = [...Array(20).keys()].map(i => i + 1)
for (const ind of quanti) {
let valuenorm = ind * numstep.value
let value = ind * numstep.value
if (value > remainingCoins.value) {
break
} else {
const label = value.toString()
const label = valuenorm.toString()
arrayMarkerLabel.value.push({ value, label })
}
}

View File

@@ -40,6 +40,10 @@
outlined v-model="qty" type="text"
:rules="[ val => val <= circuitStore.getRemainingCoinsToSend(accountloaded) || t('circuit.qta_remaining_to_send', { maxqta: circuitStore.getRemainingCoinsToSend(accountloaded), symbol: circuitloaded.symbol })]"
:label="t('movement.amount_to_send', {qtamax: circuitStore.getRemainingCoinsToSend(accountloaded) ? circuitStore.getRemainingCoinsToSend(accountloaded).toFixed(2) : 0 + ` ` + circuitloaded.symbol})"
mask="#.##"
fill-mask="0"
reverse-fill-mask
input-class="text-right"
>
<!--val => val > circuitStore.getMaxCoinsToSend(accountloaded) || t('circuit.qta_max_to_send', { maxqta: tools.getRemainingCoinsToSend(accountloaded), symbol: circuitloaded.symbol })]" -->
<template v-slot:append>
@@ -56,6 +60,7 @@
v-model="qty"
color="green"
markers
readonly
track-size="10px"
:step="numstep"
:marker-labels="arrayMarkerLabel"
@@ -65,7 +70,7 @@
switch-marker-labels-side
:inner-max="remainingCoins"
:min="0"
:max="Number(maxsendable ? maxsendable.toFixed(2) : 0)"
:max="Number(maxsendable ? maxsendable: 0)"
/>
</div>