- fix: "Circuito RIS {nomecircuito}" uniformati tutti quanti.

- fix Strette di mano dicitura.
- poter vedere e cliccare sul gruppo telegram della provincia (dalla lista dei circuiti).
This commit is contained in:
Surya Paolo
2024-04-25 23:26:25 +02:00
parent 3fb8755287
commit 87aa9427b3
8 changed files with 216 additions and 129 deletions

View File

@@ -1907,6 +1907,7 @@ export const shared_consts = {
longdescr: 1, longdescr: 1,
regulation: 1, regulation: 1,
numMembers: 1, numMembers: 1,
link_group: 1,
totCircolante: 1, totCircolante: 1,
totTransato: 1, totTransato: 1,
systemUserId: 1, systemUserId: 1,

View File

@@ -592,6 +592,9 @@ export default defineComponent({
tools.copyToClip($q, getlinkpage(), true) tools.copyToClip($q, getlinkpage(), true)
await tools.sendMsgAnnuncioToTelegramCmd($q, t, props.table, myrec.value._id) await tools.sendMsgAnnuncioToTelegramCmd($q, t, props.table, myrec.value._id)
// Apri telegram sulla chat BOT RISO
tools.openUrl(tools.getLinkBotTelegram('', ''))
} }
onMounted(mounted) onMounted(mounted)

View File

@@ -1,5 +1,5 @@
<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="
@@ -11,6 +11,7 @@
<q-item-section <q-item-section
v-if="visu !== costanti.ENTER_TO_THE_CIRCUIT" v-if="visu !== costanti.ENTER_TO_THE_CIRCUIT"
avatar avatar
class="items-center"
@click="naviga(tools.getPathByTableAndRec(table, circuit))" @click="naviga(tools.getPathByTableAndRec(table, circuit))"
> >
<q-avatar size="60px"> <q-avatar size="60px">
@@ -26,18 +27,28 @@
:class=" :class="
`q-ma-sm ` + ($q.dark.isActive ? `text-white` : `text-black`) `q-ma-sm ` + ($q.dark.isActive ? `text-white` : `text-black`)
" "
>{{ circuit.numMembers }}</span >{{ circuit.numMembers }}</span>
>
<q-icon name="fas fa-users" size="xs" color="blue"></q-icon> <q-icon name="fas fa-users" size="xs" color="blue"></q-icon>
</div> </div>
<div v-if="circuit.link_group" :class="` `">
<q-btn
icon="fab fa-telegram"
size="xs"
color="blue"
rounded
@click.stop.prevent="tools.openUrl(circuit.link_group)"
></q-btn>
</div>
</q-item-section> </q-item-section>
<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" class="text-center"
@click="naviga(tools.getPathByTableAndRec(table, circuit))" @click="naviga(tools.getPathByTableAndRec(table, circuit))"
><strong>{{ circuit.name }}</strong> >
<span v-if="circuit.subname"> ({{ circuit.subname }})</span> <strong>{{ circuit.name }}</strong>
<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))"
@@ -47,7 +58,7 @@
><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
@@ -91,22 +102,20 @@
v-if=" v-if="
!circuit.transactionsEnabled && !circuit.transactionsEnabled &&
circuit.status === circuit.status ===
shared_consts.CIRCUIT_STATUS.FASE3_MONETA_ABILITATA shared_consts.CIRCUIT_STATUS.FASE3_MONETA_ABILITATA
" "
caption caption
lines="1" lines="1"
> >
<q-icon v-if="!circuit.transactionsEnabled" name="fas fa-lock"> <q-icon v-if="!circuit.transactionsEnabled" name="fas fa-lock"></q-icon>
</q-icon> <span class="text-red text-weight-bold">
<span class="text-red text-weight-bold">{{ {{
$t('circuit.transaction_suspended') $t('circuit.transaction_suspended')
}}</span> }}
</span>
</q-item-label> </q-item-label>
<q-item-label <q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))" lines="1">
@click="naviga(tools.getPathByTableAndRec(table, circuit))"
lines="1"
>
<CSaldo <CSaldo
v-if="tools.isUserOk() && username === myusername() && account" v-if="tools.isUserOk() && username === myusername() && account"
:account="account" :account="account"
@@ -115,8 +124,7 @@
:saldo="saldo_pend" :saldo="saldo_pend"
:valueextra="saldo_pend != saldo ? `* ` : ''" :valueextra="saldo_pend != saldo ? `* ` : ''"
:qtarem="qtarem" :qtarem="qtarem"
> ></CSaldo>
</CSaldo>
</q-item-label> </q-item-label>
<q-item-label <q-item-label
lines="4" lines="4"
@@ -143,12 +151,12 @@
!userStore.IsMyCircuitByName(circuit.name) && !userStore.IsMyCircuitByName(circuit.name) &&
!userStore.IsAskedCircuitByName(circuit.name) && !userStore.IsAskedCircuitByName(circuit.name) &&
!userStore.IsRefusedCircuitByName(circuit.name) !userStore.IsRefusedCircuitByName(circuit.name)
" "
color="positive" color="positive"
:label="$t('circuit.apri')" :label="$t('circuit.apri')"
@click=" @click="
requestToEnterCircuit = true; requestToEnterCircuit = true;
groupnameSel = null; groupnameSel = null;
" "
/> />
</template> </template>
@@ -157,10 +165,7 @@
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
<q-item-section <q-item-section side v-if="visu === costanti.USER_CIRCUITS && tools.isUserOk()">
side
v-if="visu === costanti.USER_CIRCUITS && tools.isUserOk()"
>
<q-item-label> <q-item-label>
<q-btn <q-btn
rounded rounded
@@ -216,9 +221,11 @@
) )
" "
> >
<q-item-section>{{ <q-item-section>
$t('shared.refuse_ask') {{
}}</q-item-section> $t('shared.refuse_ask')
}}
</q-item-section>
</q-item> </q-item>
<q-item <q-item
clickable clickable
@@ -233,9 +240,11 @@
) )
" "
> >
<q-item-section>{{ <q-item-section>
$t('shared.cancel_ask') {{
}}</q-item-section> $t('shared.cancel_ask')
}}
</q-item-section>
</q-item> </q-item>
</q-list> </q-list>
<q-list <q-list
@@ -258,10 +267,7 @@
<q-item-section>{{ $t('circuit.exit') }}</q-item-section> <q-item-section>{{ $t('circuit.exit') }}</q-item-section>
</q-item> </q-item>
</q-list> </q-list>
<q-list <q-list v-if="userStore.isAdmin" style="min-width: 200px">
v-if="userStore.isAdmin"
style="min-width: 200px"
>
<q-item <q-item
clickable clickable
v-close-popup v-close-popup
@@ -282,10 +288,7 @@
</q-btn> </q-btn>
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
<q-item-section <q-item-section side v-if="visu === costanti.REQ_CIRCUIT && tools.isUserOk()">
side
v-if="visu === costanti.REQ_CIRCUIT && tools.isUserOk()"
>
<q-item-label> <q-item-label>
<q-btn rounded icon="fas fa-ellipsis-h"> <q-btn rounded icon="fas fa-ellipsis-h">
<q-menu> <q-menu>
@@ -305,19 +308,18 @@
) )
" "
> >
<q-item-section>{{ <q-item-section>
$t('circuit.reject_ask') {{
}}</q-item-section> $t('circuit.reject_ask')
}}
</q-item-section>
</q-item> </q-item>
</q-list> </q-list>
</q-menu> </q-menu>
</q-btn> </q-btn>
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
<q-item-section <q-item-section side v-if="visu === costanti.ASK_SENT_CIRCUIT && tools.isUserOk()">
side
v-if="visu === costanti.ASK_SENT_CIRCUIT && tools.isUserOk()"
>
<q-item-label> <q-item-label>
<q-btn rounded icon="fas fa-ellipsis-h"> <q-btn rounded icon="fas fa-ellipsis-h">
<q-menu> <q-menu>
@@ -337,9 +339,11 @@
) )
" "
> >
<q-item-section>{{ <q-item-section>
$t('shared.refuse_ask') {{
}}</q-item-section> $t('shared.refuse_ask')
}}
</q-item-section>
</q-item> </q-item>
<q-item <q-item
clickable clickable
@@ -356,9 +360,11 @@
) )
" "
> >
<q-item-section>{{ <q-item-section>
$t('shared.cancel_ask') {{
}}</q-item-section> $t('shared.cancel_ask')
}}
</q-item-section>
</q-item> </q-item>
</q-list> </q-list>
</q-menu> </q-menu>
@@ -367,10 +373,7 @@
</q-item-section> </q-item-section>
</q-item> </q-item>
<div <div class="centermydiv text-center" v-if="visu === costanti.ENTER_TO_THE_CIRCUIT">
class="centermydiv text-center"
v-if="visu === costanti.ENTER_TO_THE_CIRCUIT"
>
<q-btn <q-btn
v-if=" v-if="
!userStore.IsMyCircuitByName(circuit.name) && !userStore.IsMyCircuitByName(circuit.name) &&
@@ -382,15 +385,11 @@
:label="$t('circuit.ask')" :label="$t('circuit.ask')"
rounded rounded
@click=" @click="
requestToEnterCircuit = true; requestToEnterCircuit = true;
groupnameSel = null; groupnameSel = null;
" "
/> />
<q-btn <q-btn v-if="userStore.IsMyCircuitByName(circuit.name)" rounded icon="fas fa-ellipsis-h">
v-if="userStore.IsMyCircuitByName(circuit.name)"
rounded
icon="fas fa-ellipsis-h"
>
<q-menu> <q-menu>
<q-list v-if="true" style="min-width: 150px"> <q-list v-if="true" style="min-width: 150px">
<q-item <q-item
@@ -398,8 +397,8 @@
v-close-popup v-close-popup
v-if="true" v-if="true"
@click="(saldo !== 0) ? @click="(saldo !== 0) ?
tools.showPositiveNotif($q, t('circuit.per_uscire_dal_circuito_occorre_essere_a_zero'), 30000) : tools.showNegativeNotif($q, t('circuit.per_uscire_dal_circuito_occorre_essere_a_zero'), 30000) :
tools.removeFromMyCircuits( tools.removeFromMyCircuits(
$q, $q,
userStore.my.username, userStore.my.username,
circuit.name, circuit.name,
@@ -413,15 +412,14 @@
<q-item-section avatar> <q-item-section avatar>
<q-icon color="negative" name="fas fa-user-minus" /> <q-icon color="negative" name="fas fa-user-minus" />
</q-item-section> </q-item-section>
<q-item-section>{{ <q-item-section>
$t('circuit.exit_circuit') {{
}}</q-item-section> $t('circuit.exit_circuit')
}}
</q-item-section>
</q-item> </q-item>
<q-list <q-list v-if="userStore.isAdmin" style="min-width: 200px">
v-if="userStore.isAdmin"
style="min-width: 200px"
>
<q-item <q-item
clickable clickable
v-close-popup v-close-popup
@@ -481,12 +479,8 @@
</q-card-section> </q-card-section>
<q-card-section class="inset-shadow"> <q-card-section class="inset-shadow">
<div style="font-weight: bold; font-size: 1.25rem">Regolamento:</div> <div style="font-weight: bold; font-size: 1.25rem">Regolamento:</div>
<q-btn label="vedi Regolamento" @click="showrules = !showrules"> <q-btn label="vedi Regolamento" @click="showrules = !showrules"></q-btn>
</q-btn> <div v-if="showrules" v-html="getRegulation(circuit.regulation)"></div>
<div
v-if="showrules"
v-html="getRegulation(circuit.regulation)"
></div>
</q-card-section> </q-card-section>
<q-card-actions align="center"> <q-card-actions align="center">
<q-btn <q-btn
@@ -495,22 +489,17 @@
color="positive" color="positive"
:label="$t('circuit.acceptregulation')" :label="$t('circuit.acceptregulation')"
@click=" @click="
requestToEnterCircuit = false; requestToEnterCircuit = false;
tools.setRequestCircuit( tools.setRequestCircuit(
$q, $q,
userStore.my.username, userStore.my.username,
circuit.name, circuit.name,
true, true,
groupnameSel ? groupnameSel.groupname : '' groupnameSel ? groupnameSel.groupname : ''
); );
" "
/> />
<q-btn <q-btn outline :label="$t('dialog.cancel')" icon="close" v-close-popup></q-btn>
outline
:label="$t('dialog.cancel')"
icon="close"
v-close-popup
></q-btn>
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>
@@ -524,5 +513,5 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import './CMyCircuit.scss'; @import "./CMyCircuit.scss";
</style> </style>

View File

@@ -112,7 +112,7 @@ export default defineComponent({
if (!globalStore.isPresenteCardsByProv(strProv.value)) { if (!globalStore.isPresenteCardsByProv(strProv.value)) {
if (contact.value && contact.value.profile.resid_card) { if (contact.value && contact.value.profile.resid_card) {
contact.value.profile.resid_card = '' contact.value.profile.resid_card = ''
} }
} }
}) })
@@ -133,7 +133,7 @@ export default defineComponent({
title: t('tutorial.step_residence_title'), title: t('tutorial.step_residence_title'),
extratitle: function () { return ': ' + contact.value!.profile.resid_province }, extratitle: function () { return ': ' + contact.value!.profile.resid_province },
label: t('tutorial.step_residence'), label: t('tutorial.step_residence'),
checkOk: function (): boolean { return contact.value ? contact.value.profile.resid_province !== '' : false }, checkOk: function (): boolean { return contact.value ? contact.value.profile.resid_province !== '' && contact.value.profile.resid_province !== '0' : false },
checkOkReal: function (): boolean { return this.checkOk() }, checkOkReal: function (): boolean { return this.checkOk() },
icon: 'house', icon: 'house',
required: true, required: true,
@@ -297,6 +297,8 @@ export default defineComponent({
for (const mystep of arrStep.value) { for (const mystep of arrStep.value) {
if (mystep.checkOk()) if (mystep.checkOk())
num++ num++
else
break
} }
return num return num
}) })
@@ -336,6 +338,10 @@ export default defineComponent({
username.value = props.mycontact.username username.value = props.mycontact.username
} }
} }
if (contact.value && contact.value.profile && contact.value.profile.resid_province === '0') {
contact.value.profile.resid_province = ''
}
mylistcircuits.value = circuitStore.getCircuitsNameByProvince(strProv.value) mylistcircuits.value = circuitStore.getCircuitsNameByProvince(strProv.value)
mycircuit.value = circuitStore.getCircuitByProvinceAndCard(strProv.value, card.value) mycircuit.value = circuitStore.getCircuitByProvinceAndCard(strProv.value, card.value)
@@ -410,7 +416,7 @@ export default defineComponent({
function getindstepByStep(step: number) { function getindstepByStep(step: number) {
for (let indstep = 0; indstep < arrStep.value.length; indstep++) { for (let indstep = 0; indstep < arrStep.value.length; indstep++) {
if (arrStep.value[indstep].step === step) if (arrStep.value[indstep].step === step)
return indstep return indstep
} }
return -1 return -1
} }
@@ -572,6 +578,7 @@ export default defineComponent({
userstoverify, userstoverify,
numStepCompleted, numStepCompleted,
globalStore, globalStore,
prStep,
} }
}, },
}) })

View File

@@ -1,43 +1,115 @@
<template> <template>
<div class="q-py-xs centermydiv cardrec" <div
:style="`max-width: `+ (tools.getwidth($q) - 20) +`px; ` + ($q.screen.lt.sm ? (`min-width: `+ (tools.getwidth($q) - 20) +`px;`) : ``)"> class="q-py-xs centermydiv cardrec"
:style="
<q-item v-if="circuit" clickable v-ripple :class="`shadow-2 q-btn--rounded ` + ($q.dark.isActive ? `bg-black`: `bg-teal-1`)"> `max-width: ` +
(tools.getwidth($q) - 20) +
<q-item-section v-if="circuit.photos" avatar `px; ` +
@click="cmdExt(costanti.CMD_OPEN_PAGE, circuit)"> ($q.screen.lt.sm ? `min-width: ` + (tools.getwidth($q) - 20) + `px;` : ``)
"
>
<q-item
v-if="circuit"
clickable
v-ripple
:class="
`shadow-2 q-btn--rounded ` +
($q.dark.isActive ? `bg-black` : `bg-teal-1`)
"
>
<q-item-section
v-if="circuit.photos"
avatar
class="items-center"
@click="cmdExt(costanti.CMD_OPEN_PAGE, circuit)"
>
<q-avatar size="60px"> <q-avatar size="60px">
<q-img :src="userStore.getImgByCircuit(circuit)" :alt="circuit.descr" <q-img
img-class="imgprofile" height="60px"/> :src="userStore.getImgByCircuit(circuit)"
:alt="circuit.descr"
img-class="imgprofile"
height="60px"
/>
</q-avatar> </q-avatar>
<q-chip class="glossy" icon-right="fas fa-users" text-color="blue"><span style="font-size: 1rem;" class="q-mr-xs">{{circuit.numMembers}}</span></q-chip> <q-chip class="glossy" icon-right="fas fa-users" text-color="blue"
><span style="font-size: 1rem" class="q-mr-xs">{{
circuit.numMembers
}}</span></q-chip
>
<span v-if="circuit.link_group" :class="` `">
<q-btn
icon="fab fa-telegram"
size="xs"
color="blue"
rounded
@click.stop.prevent="tools.openUrl(circuit.link_group)"
></q-btn>
</span>
</q-item-section> </q-item-section>
<q-item-section @click="cmdExt(costanti.CMD_OPEN_PAGE, circuit)"> <q-item-section @click="cmdExt(costanti.CMD_OPEN_PAGE, circuit)">
<q-item-label
<q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))"><strong>{{ circuit.name }}</strong> <span v-if="circuit.subname"> ({{ circuit.subname }})</span> @click="naviga(tools.getPathByTableAndRec(table, circuit))"
><strong>{{ circuit.name }}</strong>
<span v-if="circuit.subname"> ({{ circuit.subname }})</span>
</q-item-label> </q-item-label>
<q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))" v-if="circuit.longdescr" caption lines="3"><em>{{ circuit.longdescr }}</em></q-item-label> <q-item-label
<q-item-label caption lines="2"> @click="naviga(tools.getPathByTableAndRec(table, circuit))"
v-if="circuit.longdescr"
caption
lines="3"
><em>{{ circuit.longdescr }}</em></q-item-label
>
<q-item-label caption lines="2">
<q-chip <q-chip
v-if="circuit.status !== undefined && circuit.status !== 0" :color="circuitStore.getColorCircuitClass(circuit)" v-if="circuit.status !== undefined && circuit.status !== 0"
:color="circuitStore.getColorCircuitClass(circuit)"
text-color="white" text-color="white"
size="sm" size="sm"
:icon="globalStore.getValueByTableSingle('statuscircuit', circuit.status, 'icon')">{{ globalStore.getValueByTableSingle('statuscircuit', circuit.status) }} :icon="
globalStore.getValueByTableSingle(
'statuscircuit',
circuit.status,
'icon'
)
"
>{{
globalStore.getValueByTableSingle('statuscircuit', circuit.status)
}}
<q-btn <q-btn
class="q-ml-sm" class="q-ml-sm"
icon="fas fa-info" color="primary" text-color="white" icon="fas fa-info"
color="primary"
text-color="white"
size="xs" size="xs"
round round
@click="showingtooltip = !showingtooltip"> @click="showingtooltip = !showingtooltip"
<q-tooltip :offset="[10, 10]" v-model="showingtooltip">{{globalStore.getValueByTableSingle('statuscircuit', circuit.status, 'hint')}}</q-tooltip> >
<q-tooltip :offset="[10, 10]" v-model="showingtooltip">{{
globalStore.getValueByTableSingle(
'statuscircuit',
circuit.status,
'hint'
)
}}</q-tooltip>
</q-btn> </q-btn>
</q-chip> </q-chip>
</q-item-label> </q-item-label>
<q-item-label v-if="(!circuit.transactionsEnabled) && (circuit.status === shared_consts.CIRCUIT_STATUS.FASE3_MONETA_ABILITATA)" caption lines="1"> <q-item-label
v-if="
!circuit.transactionsEnabled &&
circuit.status ===
shared_consts.CIRCUIT_STATUS.FASE3_MONETA_ABILITATA
"
caption
lines="1"
>
<q-icon v-if="!circuit.transactionsEnabled" name="fas fa-lock"> <q-icon v-if="!circuit.transactionsEnabled" name="fas fa-lock">
</q-icon> </q-icon>
<span class="text-red text-weight-bold">{{ $t('circuit.transaction_suspended') }}</span> <span class="text-red text-weight-bold">{{
$t('circuit.transaction_suspended')
}}</span>
</q-item-label> </q-item-label>
<!-- <!--
@@ -51,25 +123,31 @@
<q-item-label lines="3" v-if="circuit.longdescr">{{ circuit.longdescr }}<br> <q-item-label lines="3" v-if="circuit.longdescr">{{ circuit.longdescr }}<br>
</q-item-label> </q-item-label>
--> -->
</q-item-section> </q-item-section>
<q-item-section side v-if="tools.canModifyThisRec(circuit, table)"> <q-item-section side v-if="tools.canModifyThisRec(circuit, table)">
<q-item-label> <q-item-label>
<q-btn rounded dense icon="fas fa-pencil-alt"> <q-btn rounded dense icon="fas fa-pencil-alt">
<q-menu> <q-menu>
<q-list style="min-width: 150px"> <q-list style="min-width: 150px">
<q-item clickable v-close-popup <q-item
@click="cmdExt(costanti.CMD_MODIFY, circuit._id)"> clickable
v-close-popup
@click="cmdExt(costanti.CMD_MODIFY, circuit._id)"
>
<q-item-section side> <q-item-section side>
<q-icon name="fas fa-pencil-alt"/> <q-icon name="fas fa-pencil-alt" />
</q-item-section> </q-item-section>
<q-item-section>{{ $t('reg.edit') }}</q-item-section> <q-item-section>{{ $t('reg.edit') }}</q-item-section>
</q-item> </q-item>
</q-list> </q-list>
<q-list style="min-width: 150px"> <q-list style="min-width: 150px">
<q-item clickable v-close-popup @click="cmdExt(costanti.CMD_DELETE, circuit._id)"> <q-item
clickable
v-close-popup
@click="cmdExt(costanti.CMD_DELETE, circuit._id)"
>
<q-item-section side> <q-item-section side>
<q-icon name="fas fa-trash-alt"/> <q-icon name="fas fa-trash-alt" />
</q-item-section> </q-item-section>
<q-item-section>{{ $t('reg.elimina') }}</q-item-section> <q-item-section>{{ $t('reg.elimina') }}</q-item-section>
</q-item> </q-item>
@@ -78,11 +156,9 @@
</q-btn> </q-btn>
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-separator inset="item"/> <q-separator inset="item" />
</div> </div>
</template> </template>
<script lang="ts" src="./CMyRecCircuitCard.ts"> <script lang="ts" src="./CMyRecCircuitCard.ts">

File diff suppressed because one or more lines are too long

View File

@@ -96,7 +96,7 @@ tools.setRequestCircuit(
v-close-popup v-close-popup
v-if="true" v-if="true"
@click="(saldo !== 0) ? @click="(saldo !== 0) ?
tools.showPositiveNotif($q, t('circuit.per_uscire_dal_circuito_occorre_essere_a_zero'), 30000) : tools.showNegativeNotif($q, t('circuit.per_uscire_dal_circuito_occorre_essere_a_zero'), 30000) :
tools.removeFromMyCircuits( tools.removeFromMyCircuits(
$q, $q,
userStore.my.username, userStore.my.username,

View File

@@ -643,6 +643,17 @@
:showBtnActivities="true" :showBtnActivities="true"
:sendRIS="tools.isUserOk() ? sendRIS : false" :sendRIS="tools.isUserOk() ? sendRIS : false"
/> />
<div class="row text-center">
<q-btn
v-if="userStore.userprofile.username === myusername()"
outline
icon="fas fa-pencil-alt"
:label="$t('shared.edit_profile')"
@click.stop="gotoPage('/editprofile')"
>
</q-btn>
</div>
</div> </div>
<div <div