- Togliere la terza cifra nell'invio dei RIS... massimo 0.99
This commit is contained in:
@@ -32,7 +32,7 @@ export default defineComponent({
|
||||
const userStore = useUserStore()
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const showsendCoinTo = ref(true)
|
||||
const showsendCoinTo = ref(false)
|
||||
const showingtooltip = ref(false)
|
||||
|
||||
const site = computed(() => globalStore.site)
|
||||
|
||||
@@ -71,12 +71,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="showsendCoinTo || sendRIS > 0">
|
||||
<div v-if="showsendCoinTo || sendRIS">
|
||||
<CSendCoins
|
||||
:showprop="showsendCoinTo"
|
||||
:to_user="myuser"
|
||||
:sendRIS="sendRIS"
|
||||
@close="showsendCoinTo = false"
|
||||
@close="showsendCoinTo = false; loading = false"
|
||||
@showed="loading = false"
|
||||
>
|
||||
</CSendCoins>
|
||||
|
||||
@@ -422,7 +422,7 @@
|
||||
clickable
|
||||
v-close-popup
|
||||
dense
|
||||
@click="naviga(`/my/` + contact.username)"
|
||||
@click="naviga(`/my/` + contact.username + '?sendris=0')"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="positive" name="fas fa-coins" />
|
||||
@@ -811,7 +811,7 @@
|
||||
clickable
|
||||
v-close-popup
|
||||
dense
|
||||
@click="naviga(`/my/` + contact.username)"
|
||||
@click="naviga(`/my/` + contact.username + '?sendris=0')"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="positive" name="fas fa-coins" />
|
||||
|
||||
@@ -282,7 +282,8 @@ export default defineComponent({
|
||||
qty.value = props.qtydefault
|
||||
|
||||
if (props.sendRIS) {
|
||||
qty.value = props.sendRIS
|
||||
if (props.sendRIS !== '0')
|
||||
qty.value = props.sendRIS
|
||||
}
|
||||
|
||||
await aggiorna()
|
||||
@@ -403,7 +404,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function checkRisValid() {
|
||||
return qty.value ? qty.value && getQty() > 0.01 && accountloaded.value
|
||||
return qty.value ? qty.value && getQty() >= 0.01 && accountloaded.value
|
||||
&& getQty() <= circuitStore.getRemainingCoinsToSend(accountloaded.value) : false
|
||||
}
|
||||
|
||||
|
||||
@@ -14,10 +14,16 @@
|
||||
{{ $t('circuit.sendcoins') }}
|
||||
<q-space />
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-bar>
|
||||
</q-bar>
|
||||
|
||||
<q-card-section>
|
||||
<q-stepper v-model="step" ref="stepper" color="primary" animated class="mystepper">
|
||||
<q-stepper
|
||||
v-model="step"
|
||||
ref="stepper"
|
||||
color="primary"
|
||||
animated
|
||||
class="mystepper"
|
||||
>
|
||||
<q-step
|
||||
:name="0"
|
||||
:title="getTitle(0)"
|
||||
@@ -158,9 +164,8 @@
|
||||
:name="1"
|
||||
:title="getTitle(1)"
|
||||
:icon="getIcon(1)"
|
||||
:done="ifNextCheck(1)"
|
||||
:done="ifNextCheck(1)"
|
||||
>
|
||||
|
||||
<div v-if="circuitloaded && !!circuitloaded._id">
|
||||
<q-banner
|
||||
v-if="!circuitloaded.transactionsEnabled"
|
||||
@@ -229,6 +234,29 @@
|
||||
:icon="getIcon(2)"
|
||||
:done="ifNextCheck(2)"
|
||||
>
|
||||
<!-- Destination -->
|
||||
<CMyUserOnlyView
|
||||
v-if="to_user"
|
||||
:mycontact="to_user"
|
||||
:visu="costanti.FIND_PEOPLE"
|
||||
@setCmd="tools.setCmd"
|
||||
>
|
||||
</CMyUserOnlyView>
|
||||
<CMyGroupOnlyView
|
||||
v-if="to_group"
|
||||
:mygrp="to_group"
|
||||
:visu="costanti.USER_GROUPS"
|
||||
:circuitname="circuitloaded.name"
|
||||
>
|
||||
</CMyGroupOnlyView>
|
||||
<CMyGroupOnlyView
|
||||
v-if="circuitloaded && !!circuitloaded._id && to_contocom"
|
||||
:mygrp="{ groupname: to_contocom }"
|
||||
:visu="costanti.USER_GROUPS"
|
||||
:circuitname="circuitloaded.name"
|
||||
>
|
||||
</CMyGroupOnlyView>
|
||||
|
||||
<q-field class="text-center text-bold">
|
||||
{{ $t('circuit.descr_casuale') }}
|
||||
</q-field>
|
||||
@@ -242,7 +270,9 @@
|
||||
>
|
||||
</q-input>
|
||||
|
||||
<div class="sendris">{{$t('circuit.sendcoinsto', {
|
||||
<div class="sendris">
|
||||
{{
|
||||
$t('circuit.sendcoinsto', {
|
||||
qty,
|
||||
coin: circuitloaded.symbol,
|
||||
dest: to_group
|
||||
@@ -250,7 +280,9 @@
|
||||
: to_user
|
||||
? tools.getNomeUtenteByRecUser(to_user)
|
||||
: to_contocom,
|
||||
})}} sul {{circuitsel }}
|
||||
})
|
||||
}}
|
||||
sul {{ circuitsel }}
|
||||
</div>
|
||||
</q-step>
|
||||
</q-stepper>
|
||||
@@ -281,7 +313,9 @@
|
||||
})
|
||||
"
|
||||
color="positive"
|
||||
:icon="(step === 2) ? 'img: images/1ris_rosso_100.png' : 'navigate_next'"
|
||||
:icon="
|
||||
step === 2 ? 'img: images/1ris_rosso_100.png' : 'navigate_next'
|
||||
"
|
||||
@click="clickAvanti(step)"
|
||||
></q-btn>
|
||||
</q-card-actions>
|
||||
|
||||
Reference in New Issue
Block a user