- Togliere la terza cifra nell'invio dei RIS... massimo 0.99
This commit is contained in:
@@ -251,6 +251,8 @@ module.exports = configure((ctx) => ({
|
|||||||
'Cookies',
|
'Cookies',
|
||||||
'Loading',
|
'Loading',
|
||||||
'AppVisibility',
|
'AppVisibility',
|
||||||
|
'LocalStorage',
|
||||||
|
'SessionStorage',
|
||||||
],
|
],
|
||||||
get plugins_1() {
|
get plugins_1() {
|
||||||
return this._plugins;
|
return this._plugins;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export default defineComponent({
|
|||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const globalStore = useGlobalStore()
|
const globalStore = useGlobalStore()
|
||||||
|
|
||||||
const showsendCoinTo = ref(true)
|
const showsendCoinTo = ref(false)
|
||||||
const showingtooltip = ref(false)
|
const showingtooltip = ref(false)
|
||||||
|
|
||||||
const site = computed(() => globalStore.site)
|
const site = computed(() => globalStore.site)
|
||||||
|
|||||||
@@ -71,12 +71,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="showsendCoinTo || sendRIS > 0">
|
<div v-if="showsendCoinTo || sendRIS">
|
||||||
<CSendCoins
|
<CSendCoins
|
||||||
:showprop="showsendCoinTo"
|
:showprop="showsendCoinTo"
|
||||||
:to_user="myuser"
|
:to_user="myuser"
|
||||||
:sendRIS="sendRIS"
|
:sendRIS="sendRIS"
|
||||||
@close="showsendCoinTo = false"
|
@close="showsendCoinTo = false; loading = false"
|
||||||
@showed="loading = false"
|
@showed="loading = false"
|
||||||
>
|
>
|
||||||
</CSendCoins>
|
</CSendCoins>
|
||||||
|
|||||||
@@ -422,7 +422,7 @@
|
|||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
dense
|
dense
|
||||||
@click="naviga(`/my/` + contact.username)"
|
@click="naviga(`/my/` + contact.username + '?sendris=0')"
|
||||||
>
|
>
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="positive" name="fas fa-coins" />
|
<q-icon color="positive" name="fas fa-coins" />
|
||||||
@@ -811,7 +811,7 @@
|
|||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
dense
|
dense
|
||||||
@click="naviga(`/my/` + contact.username)"
|
@click="naviga(`/my/` + contact.username + '?sendris=0')"
|
||||||
>
|
>
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="positive" name="fas fa-coins" />
|
<q-icon color="positive" name="fas fa-coins" />
|
||||||
|
|||||||
@@ -282,7 +282,8 @@ export default defineComponent({
|
|||||||
qty.value = props.qtydefault
|
qty.value = props.qtydefault
|
||||||
|
|
||||||
if (props.sendRIS) {
|
if (props.sendRIS) {
|
||||||
qty.value = props.sendRIS
|
if (props.sendRIS !== '0')
|
||||||
|
qty.value = props.sendRIS
|
||||||
}
|
}
|
||||||
|
|
||||||
await aggiorna()
|
await aggiorna()
|
||||||
@@ -403,7 +404,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function checkRisValid() {
|
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
|
&& getQty() <= circuitStore.getRemainingCoinsToSend(accountloaded.value) : false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,10 +14,16 @@
|
|||||||
{{ $t('circuit.sendcoins') }}
|
{{ $t('circuit.sendcoins') }}
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||||
</q-bar>
|
</q-bar>
|
||||||
|
|
||||||
<q-card-section>
|
<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
|
<q-step
|
||||||
:name="0"
|
:name="0"
|
||||||
:title="getTitle(0)"
|
:title="getTitle(0)"
|
||||||
@@ -158,9 +164,8 @@
|
|||||||
:name="1"
|
:name="1"
|
||||||
:title="getTitle(1)"
|
:title="getTitle(1)"
|
||||||
:icon="getIcon(1)"
|
:icon="getIcon(1)"
|
||||||
:done="ifNextCheck(1)"
|
:done="ifNextCheck(1)"
|
||||||
>
|
>
|
||||||
|
|
||||||
<div v-if="circuitloaded && !!circuitloaded._id">
|
<div v-if="circuitloaded && !!circuitloaded._id">
|
||||||
<q-banner
|
<q-banner
|
||||||
v-if="!circuitloaded.transactionsEnabled"
|
v-if="!circuitloaded.transactionsEnabled"
|
||||||
@@ -229,6 +234,29 @@
|
|||||||
:icon="getIcon(2)"
|
:icon="getIcon(2)"
|
||||||
:done="ifNextCheck(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">
|
<q-field class="text-center text-bold">
|
||||||
{{ $t('circuit.descr_casuale') }}
|
{{ $t('circuit.descr_casuale') }}
|
||||||
</q-field>
|
</q-field>
|
||||||
@@ -242,7 +270,9 @@
|
|||||||
>
|
>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
<div class="sendris">{{$t('circuit.sendcoinsto', {
|
<div class="sendris">
|
||||||
|
{{
|
||||||
|
$t('circuit.sendcoinsto', {
|
||||||
qty,
|
qty,
|
||||||
coin: circuitloaded.symbol,
|
coin: circuitloaded.symbol,
|
||||||
dest: to_group
|
dest: to_group
|
||||||
@@ -250,7 +280,9 @@
|
|||||||
: to_user
|
: to_user
|
||||||
? tools.getNomeUtenteByRecUser(to_user)
|
? tools.getNomeUtenteByRecUser(to_user)
|
||||||
: to_contocom,
|
: to_contocom,
|
||||||
})}} sul {{circuitsel }}
|
})
|
||||||
|
}}
|
||||||
|
sul {{ circuitsel }}
|
||||||
</div>
|
</div>
|
||||||
</q-step>
|
</q-step>
|
||||||
</q-stepper>
|
</q-stepper>
|
||||||
@@ -281,7 +313,9 @@
|
|||||||
})
|
})
|
||||||
"
|
"
|
||||||
color="positive"
|
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)"
|
@click="clickAvanti(step)"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<CNotifAtTop />
|
<!--<CNotifAtTop />-->
|
||||||
<div v-if="tools.isUserOk()" class="q-gutter-sm q-pa-sm q-pb-md">
|
<div v-if="tools.isUserOk()" class="q-gutter-sm q-pa-sm q-pb-md">
|
||||||
<div v-if="!circuit && !loading">
|
<div v-if="!circuit && !loading">
|
||||||
<div v-if="mystatus === 403">
|
<div v-if="mystatus === 403">
|
||||||
@@ -187,19 +187,19 @@
|
|||||||
class="fit column no-wrap justify-evenly items-center content-start"
|
class="fit column no-wrap justify-evenly items-center content-start"
|
||||||
>
|
>
|
||||||
<div class="row justify-center">
|
<div class="row justify-center">
|
||||||
<q-avatar v-if="getImgCircuit()" size="70px">
|
<q-avatar v-if="getImgCircuit()" size="50px">
|
||||||
<q-img
|
<q-img
|
||||||
:src="getImgCircuit()"
|
:src="getImgCircuit()"
|
||||||
:alt="circuit.name"
|
:alt="circuit.name"
|
||||||
img-class="imgprofile"
|
img-class="imgprofile"
|
||||||
height="70px"
|
height="50px"
|
||||||
@click="showPic = true"
|
@click="showPic = true"
|
||||||
/>
|
/>
|
||||||
</q-avatar>
|
</q-avatar>
|
||||||
<div class="q-mx-xs text-h6" style="align-self: center">
|
<div class="q-mx-xs text-h6" style="align-self: center">
|
||||||
<span v-if="checkifShow('name')">{{ circuit.name }}</span>
|
<span v-if="checkifShow('name')">{{ circuit.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="row no-wrap justify-center items-center">
|
||||||
<CSaldo
|
<CSaldo
|
||||||
v-if="account"
|
v-if="account"
|
||||||
:symbol="circuit.symbol"
|
:symbol="circuit.symbol"
|
||||||
@@ -209,6 +209,17 @@
|
|||||||
:qtarem="account ? qtarem : 0"
|
:qtarem="account ? qtarem : 0"
|
||||||
:valueextra="saldo_pend != saldo ? `* ` : ''"
|
:valueextra="saldo_pend != saldo ? `* ` : ''"
|
||||||
></CSaldo>
|
></CSaldo>
|
||||||
|
<q-btn
|
||||||
|
v-if="account && !loadSaldo"
|
||||||
|
outline
|
||||||
|
rounded
|
||||||
|
dense
|
||||||
|
color="green"
|
||||||
|
style="height: 40px;"
|
||||||
|
icon="fas fa-redo"
|
||||||
|
class="q-mx-sm"
|
||||||
|
@click="aggiornaSaldo()"
|
||||||
|
></q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<q-dialog v-model="showMov" :maximized="$q.screen.lt.sm" permanent>
|
<q-dialog v-model="showMov" :maximized="$q.screen.lt.sm" permanent>
|
||||||
@@ -319,16 +330,6 @@
|
|||||||
:thickness="2"
|
:thickness="2"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<q-btn
|
|
||||||
v-if="account && !loadSaldo"
|
|
||||||
outline
|
|
||||||
rounded
|
|
||||||
dense
|
|
||||||
color="green"
|
|
||||||
icon="fas fa-redo"
|
|
||||||
:label="t('movement.updatewallet')"
|
|
||||||
@click="aggiornaSaldo()"
|
|
||||||
></q-btn>
|
|
||||||
|
|
||||||
<div class="q-ma-sm text-center">
|
<div class="q-ma-sm text-center">
|
||||||
<q-btn
|
<q-btn
|
||||||
@@ -480,7 +481,6 @@
|
|||||||
:label="t('shared.info1')"
|
:label="t('shared.info1')"
|
||||||
name="info"
|
name="info"
|
||||||
icon="fas fa-info"
|
icon="fas fa-info"
|
||||||
@click="loadCircuit()"
|
|
||||||
></q-tab>
|
></q-tab>
|
||||||
<q-tab
|
<q-tab
|
||||||
v-if="
|
v-if="
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<div v-if="isfinishLoading" class>
|
<div v-if="isfinishLoading" class>
|
||||||
<div v-if="tools.isLogged()">
|
<div v-if="tools.isLogged()">
|
||||||
<CNotifAtTop />
|
<CNotifAtTop />
|
||||||
|
|
||||||
<CMyCircuits v-model="filter" :finder="true" :showfinder="true" :showBarSelection="true">
|
<CMyCircuits v-model="filter" :finder="true" :showfinder="true" :showBarSelection="true">
|
||||||
<CFinder
|
<CFinder
|
||||||
:ind="tools.getIndMainCardsByTable(shared_consts.TABLES_CIRCUITS)"
|
:ind="tools.getIndMainCardsByTable(shared_consts.TABLES_CIRCUITS)"
|
||||||
|
|||||||
Reference in New Issue
Block a user