Attivare gli scambi RIS solo se si è aggiunto almeno 1 bene o 1 servizio.

This commit is contained in:
Surya Paolo
2022-12-03 03:14:19 +01:00
parent 556d933638
commit 686dc585e6
9 changed files with 79 additions and 41 deletions

View File

@@ -31,29 +31,6 @@
v-if="myuser && myuser.date_reg"
class="fit column no-wrap justify-evenly items-center content-start"
>
<div class="">
<q-avatar size="140px">
<q-img
:src="getImgUser()"
:alt="username"
img-class="imgprofile"
height="140px"
@click="showPic = true"
/>
</q-avatar>
</div>
<div v-if="site.confpages.showNameSurname">
<div class="text-h6">
<span v-if="checkifShow('name')"> {{ myuser.name }}</span> <span v-if="checkifShow('surname')">{{
myuser.surname
}}</span>
</div>
</div>
<div class="col-12 text-h7 text-blue text-shadow-2">
{{ myuser.username }}
</div>
<CTitleBanner
v-if="site.confpages.showCompetenze"
class=""
@@ -63,6 +40,28 @@
myclass="myshad"
:canopen="true"
>
<div
class="
fit
column
no-wrap
justify-evenly
items-center
content-start
"
>
<div v-if="site.confpages.showNameSurname">
<div class="text-h6">
<span v-if="checkifShow('name')"> {{ myuser.name }}</span>
<span v-if="checkifShow('surname')">{{
myuser.surname
}}</span>
</div>
</div>
<div class="col-12 text-h7 text-blue text-shadow-2">
{{ myuser.username }}
</div>
</div>
<q-select
v-model="actualcard"
:options="optionsMainCards"

View File

@@ -1,6 +1,5 @@
<template>
<CNotifAtTop/>
circuit: {{circuit}}
<div class="q-gutter-sm q-pa-sm q-pb-md">
<div v-if="!circuit && !loading">
<div v-if="mystatus === 403">
@@ -46,6 +45,25 @@
<em style="font-weight: bold">{{ $t('db.youarerefusedcircuit') }}</em><br>
</q-banner>
<q-banner
v-if="userStore.my.profile.calc.numGoodsAndServices <= 0"
rounded
class="bg-orange text-white"
style="text-align: center;"
>
<template v-slot:avatar>
<q-icon
name="fas fa-exclamation-triangle"
color="yellow"
size="xs"
/>
</template>
<em style="font-weight: bold">{{ $t('db.insertgoodorservices_to_start_circuit') }}</em><br>
</q-banner>
<br>
<CSaldo
:symbol="circuit.symbol"
:account="account"

View File

@@ -158,7 +158,7 @@
<q-btn
icon="fas fa-house-user"
size="md"
color="red"
color="orange"
:label="$t('profile.myactivities')"
:to="`/skills/` + myusername()"
>
@@ -167,7 +167,7 @@
</div>
<div class="col-md-6 col-sm-6 q-ma-xs col-xs-12">
<q-btn
v-if="userStore.IsMyCircuitByUser(myuser).length > 0 && myuser.username !== myusername()"
v-if="userStore.IsMyCircuitByUser(myuser).length > 0 && myuser.username !== myusername() && userStore.my.profile.calc.numGoodsAndServices > 0"
icon="fas fa-coins"
color="green"
size="md"