Circuito Italia, dettagli...
This commit is contained in:
@@ -1,9 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<div class="row justify-evenly items-center q-pa-sm q-ma-sm">
|
<div class="row justify-evenly items-center q-pa-sm q-ma-sm">
|
||||||
|
<div >
|
||||||
|
<q-btn
|
||||||
|
v-if="
|
||||||
|
userStore.showButtonSendCoin(myuser) &&
|
||||||
|
(myuser.username !== userStore.my.username ||
|
||||||
|
userStore.hoContiCollettiviDaAmministrare() ||
|
||||||
|
userStore.hoContiComunitariDaAmministrare())
|
||||||
|
"
|
||||||
|
icon="fas fa-coins"
|
||||||
|
color="green"
|
||||||
|
size="md"
|
||||||
|
rounded
|
||||||
|
:label="$t('circuit.sendcoins')"
|
||||||
|
@click="clickOpenSendCoin"
|
||||||
|
>
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="showBtnActivities"
|
v-if="showBtnActivities"
|
||||||
class="col-md-6 col-sm-6 q-ma-xs col-xs-12 text-center q-mb-md"
|
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
icon="fas fa-house-user"
|
icon="fas fa-house-user"
|
||||||
@@ -14,7 +30,7 @@
|
|||||||
>
|
>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
<div class="q-ma-sx">
|
<div class="q-ma-sm">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="getLinkUserTelegram()"
|
v-if="getLinkUserTelegram()"
|
||||||
icon="fab fa-telegram"
|
icon="fab fa-telegram"
|
||||||
@@ -52,21 +68,6 @@
|
|||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="q-ma-sx">
|
|
||||||
<q-btn
|
|
||||||
v-if="
|
|
||||||
userStore.showButtonSendCoin(myuser) &&
|
|
||||||
((myuser.username !== userStore.my.username) || userStore.hoContiCollettiviDaAmministrare() || userStore.hoContiComunitariDaAmministrare())
|
|
||||||
"
|
|
||||||
icon="fas fa-coins"
|
|
||||||
color="green"
|
|
||||||
size="md"
|
|
||||||
rounded
|
|
||||||
:label="$t('circuit.sendcoins')"
|
|
||||||
@click="clickOpenSendCoin"
|
|
||||||
>
|
|
||||||
</q-btn>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="showsendCoinTo || sendRIS > 0">
|
<div v-if="showsendCoinTo || sendRIS > 0">
|
||||||
<CSendCoins
|
<CSendCoins
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="tools.isUserOk() || noaut">
|
<div v-if="tools.isUserOk() || noaut">
|
||||||
|
|
||||||
<div v-if="circuit">
|
<div v-if="circuit">
|
||||||
<q-item
|
<q-item
|
||||||
:class="
|
:class="
|
||||||
@@ -34,21 +35,22 @@
|
|||||||
|
|
||||||
<q-item-section :class="$q.dark.isActive ? `text-white` : `text-black`">
|
<q-item-section :class="$q.dark.isActive ? `text-white` : `text-black`">
|
||||||
<q-item-label
|
<q-item-label
|
||||||
|
class="text-center"
|
||||||
@click="naviga(tools.getPathByTableAndRec(table, circuit))"
|
@click="naviga(tools.getPathByTableAndRec(table, circuit))"
|
||||||
><strong>{{ circuit.name }}</strong>
|
><strong>{{ circuit.name }}</strong>
|
||||||
<span v-if="circuit.subname"> ({{ circuit.subname }})</span>
|
<span v-if="circuit.subname"> ({{ circuit.subname }})</span>
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
<q-item-label
|
<!---<q-item-label
|
||||||
@click="naviga(tools.getPathByTableAndRec(table, circuit))"
|
@click="naviga(tools.getPathByTableAndRec(table, circuit))"
|
||||||
v-if="circuit.longdescr && circuit.longdescr !== circuit.name"
|
v-if="circuit.longdescr && circuit.longdescr !== circuit.name"
|
||||||
caption
|
caption
|
||||||
lines="3"
|
lines="3"
|
||||||
><em>{{ circuit.longdescr }}</em>
|
><em>{{ circuit.longdescr }}</em>
|
||||||
</q-item-label>
|
</q-item-label>-->
|
||||||
<q-item-label v-if="visu === costanti.ENTER_TO_THE_CIRCUIT" caption>
|
<q-item-label v-if="visu === costanti.ENTER_TO_THE_CIRCUIT" caption>
|
||||||
<span> Membri: {{ circuit.numMembers }}</span>
|
<span> Membri: {{ circuit.numMembers }}</span>
|
||||||
</q-item-label>
|
</q-item-label>
|
||||||
<q-item-label caption lines="3">
|
<!--<q-item-label caption lines="3">
|
||||||
<q-chip
|
<q-chip
|
||||||
v-if="circuit.status !== undefined && circuit.status !== 0"
|
v-if="circuit.status !== undefined && circuit.status !== 0"
|
||||||
:color="circuitStore.getColorCircuitClass(circuit)"
|
:color="circuitStore.getColorCircuitClass(circuit)"
|
||||||
@@ -85,7 +87,7 @@
|
|||||||
}}</q-tooltip>
|
}}</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</q-chip>
|
</q-chip>
|
||||||
</q-item-label>
|
</q-item-label>-->
|
||||||
<q-item-label
|
<q-item-label
|
||||||
v-if="
|
v-if="
|
||||||
!circuit.transactionsEnabled &&
|
!circuit.transactionsEnabled &&
|
||||||
|
|||||||
@@ -498,8 +498,8 @@
|
|||||||
<div v-else-if="myel.type === shared_consts.ELEMTYPE.BOTT_CONDIVIDI">
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.BOTT_CONDIVIDI">
|
||||||
<div class="row justify-evenly items-center q-pa-sm q-ma-sm">
|
<div class="row justify-evenly items-center q-pa-sm q-ma-sm">
|
||||||
<q-btn
|
<q-btn
|
||||||
icon="fas fa-link"
|
icon="fas fa-share"
|
||||||
color="blue"
|
text-color="blue"
|
||||||
type="a"
|
type="a"
|
||||||
size="md"
|
size="md"
|
||||||
:class="
|
:class="
|
||||||
|
|||||||
@@ -401,7 +401,7 @@
|
|||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>{{ $t('shared.profile') }}</q-item-section>
|
<q-item-section>{{ $t('shared.profile') }}</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<!--<q-item
|
<q-item
|
||||||
v-if="
|
v-if="
|
||||||
userStore.showButtonSendCoin(contact) &&
|
userStore.showButtonSendCoin(contact) &&
|
||||||
(contact.username !== userStore.my.username ||
|
(contact.username !== userStore.my.username ||
|
||||||
@@ -411,13 +411,13 @@
|
|||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
dense
|
dense
|
||||||
@click="showsendCoin(true)"
|
@click="naviga(`/my/` + contact.username + '?sendris=1')"
|
||||||
>
|
>
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="positive" name="fas fa-coins" />
|
<q-icon color="positive" name="fas fa-coins" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>{{ $t('circuit.sendcoins') }}</q-item-section>
|
<q-item-section>{{ $t('circuit.sendcoins') }}</q-item-section>
|
||||||
</q-item>-->
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@@ -787,7 +787,7 @@
|
|||||||
>
|
>
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list style="min-width: 200px">
|
<q-list style="min-width: 200px">
|
||||||
<!--<q-item
|
<q-item
|
||||||
v-if="
|
v-if="
|
||||||
userStore.showButtonSendCoin(contact) &&
|
userStore.showButtonSendCoin(contact) &&
|
||||||
(contact.username !== userStore.my.username ||
|
(contact.username !== userStore.my.username ||
|
||||||
@@ -797,13 +797,13 @@
|
|||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
dense
|
dense
|
||||||
@click="showsendCoin(true)"
|
@click="naviga(`/my/` + contact.username + '?sendris=1')"
|
||||||
>
|
>
|
||||||
<q-item-section avatar>
|
<q-item-section avatar>
|
||||||
<q-icon color="positive" name="fas fa-coins" />
|
<q-icon color="positive" name="fas fa-coins" />
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
<q-item-section>{{ $t('circuit.sendcoins') }}</q-item-section>
|
<q-item-section>{{ $t('circuit.sendcoins') }}</q-item-section>
|
||||||
</q-item>-->
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import { CMyUserOnlyView } from '@/components/CMyUserOnlyView'
|
|||||||
import { CMyGroupOnlyView } from '@/components/CMyGroupOnlyView'
|
import { CMyGroupOnlyView } from '@/components/CMyGroupOnlyView'
|
||||||
import { CCheckCircuitsEnabled } from '@/components/CCheckCircuitsEnabled'
|
import { CCheckCircuitsEnabled } from '@/components/CCheckCircuitsEnabled'
|
||||||
import { costanti } from '@costanti'
|
import { costanti } from '@costanti'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'CSendCoins',
|
name: 'CSendCoins',
|
||||||
@@ -63,6 +64,7 @@ export default defineComponent({
|
|||||||
const showpage = ref(false)
|
const showpage = ref(false)
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const circuitStore = useCircuitStore()
|
const circuitStore = useCircuitStore()
|
||||||
|
const $router = useRouter()
|
||||||
|
|
||||||
const from_username = ref(userStore.my.username)
|
const from_username = ref(userStore.my.username)
|
||||||
const from_groupname = ref('')
|
const from_groupname = ref('')
|
||||||
@@ -346,7 +348,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
|
|
||||||
if (myrecsendcoin) {
|
if (myrecsendcoin) {
|
||||||
tools.sendCoinsByCircuit($q, circuitloaded.value, myrecsendcoin)
|
tools.sendCoinsByCircuit($q, $router, circuitloaded.value, myrecsendcoin)
|
||||||
.then((ris: any) => {
|
.then((ris: any) => {
|
||||||
if (ris) {
|
if (ris) {
|
||||||
showpage.value = false
|
showpage.value = false
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ export default defineComponent({
|
|||||||
t,
|
t,
|
||||||
myaccount,
|
myaccount,
|
||||||
save,
|
save,
|
||||||
|
toolsext,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,6 +6,18 @@
|
|||||||
|
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
|
<q-btn
|
||||||
|
text-color="blue"
|
||||||
|
color="white"
|
||||||
|
class="shadow-5 q-mb-xs"
|
||||||
|
dense
|
||||||
|
flat
|
||||||
|
rounded
|
||||||
|
size="md"
|
||||||
|
@click="naviga(tools.getPathByTableAndRec(toolsext.TABCIRCUITS, circuit))"
|
||||||
|
>
|
||||||
|
{{ circuit.name }}
|
||||||
|
</q-btn>
|
||||||
|
|
||||||
<CSaldo
|
<CSaldo
|
||||||
v-if="tools.isUserOk() && myaccount"
|
v-if="tools.isUserOk() && myaccount"
|
||||||
|
|||||||
@@ -6401,7 +6401,7 @@ export const tools = {
|
|||||||
return extrarec.grouporig ? extrarec.grouporig : (extrarec.contoComOrig ? extrarec.contoComOrig : extrarec.sender)
|
return extrarec.grouporig ? extrarec.grouporig : (extrarec.contoComOrig ? extrarec.contoComOrig : extrarec.sender)
|
||||||
},
|
},
|
||||||
|
|
||||||
async sendCoinsByCircuit($q: any, circuit: ICircuit, sendcoinrec: ISendCoin) {
|
async sendCoinsByCircuit($q: any, $router: any, circuit: ICircuit, sendcoinrec: ISendCoin) {
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const notifStore = useNotifStore()
|
const notifStore = useNotifStore()
|
||||||
@@ -6437,6 +6437,7 @@ export const tools = {
|
|||||||
if (res.useraccounts && res.useraccounts.length > 0) {
|
if (res.useraccounts && res.useraccounts.length > 0) {
|
||||||
userStore.my.profile.useraccounts = res.useraccounts
|
userStore.my.profile.useraccounts = res.useraccounts
|
||||||
}
|
}
|
||||||
|
$router.push('/circuit')
|
||||||
tools.showPositiveNotif($q, t('circuit.coins_sendrequest_sent'))
|
tools.showPositiveNotif($q, t('circuit.coins_sendrequest_sent'))
|
||||||
} else {
|
} else {
|
||||||
tools.showNegativeNotif($q, res.errormsg)
|
tools.showNegativeNotif($q, res.errormsg)
|
||||||
|
|||||||
@@ -254,7 +254,7 @@
|
|||||||
>({{ userStore.userprofile.profile.nationality }})</span
|
>({{ userStore.userprofile.profile.nationality }})</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="userStore.userprofile._id" class="col-12 text-h8 q-mt-sm">
|
<div v-if="userStore.userprofile.profile.qualifica && userStore.userprofile._id" class="col-12 text-h8 q-mt-sm">
|
||||||
<span v-if="userStore.userprofile.profile.qualifica">
|
<span v-if="userStore.userprofile.profile.qualifica">
|
||||||
<em
|
<em
|
||||||
><span class="qualifica">{{
|
><span class="qualifica">{{
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="userStore.userprofile._id" class="col-12 text-h8 q-mt-sm">
|
<div v-if="userStore.userprofile._id && userStore.userprofile.profile.biografia" class="col-12 text-h8 q-mt-sm">
|
||||||
{{ userStore.userprofile.profile.biografia }}
|
{{ userStore.userprofile.profile.biografia }}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user