poter visualizzare i propri beni e servizi anche se non sei registrato alla app !
This commit is contained in:
@@ -246,6 +246,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
noaut: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
components: {
|
||||
CMyPopupEdit, CTitleBanner, CMyFieldDb, CMySelect, CMyFriends, CMyGroups,
|
||||
@@ -845,6 +850,7 @@ export default defineComponent({
|
||||
userId: userStore.my._id,
|
||||
codeId: '',
|
||||
options: props.options,
|
||||
noaut: props.noaut,
|
||||
}
|
||||
|
||||
params.codeId = mycodeid.value
|
||||
|
||||
@@ -32,6 +32,11 @@ export default defineComponent({
|
||||
visu: {
|
||||
type: Number,
|
||||
required: true,
|
||||
},
|
||||
noaut: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div v-if="tools.isUserOk()">
|
||||
<div v-if="tools.isUserOk() || noaut">
|
||||
<div v-if="circuit">
|
||||
<q-item :class="`q-my-sm bordo_stondato_circuiti ` + ($q.dark.isActive ? `text-white` : `text-black`)" clickable>
|
||||
<q-item-section avatar @click="naviga(tools.getPathByTableAndRec(table, circuit))">
|
||||
@@ -44,6 +44,7 @@
|
||||
|
||||
<q-item-label @click="naviga(tools.getPathByTableAndRec(table, circuit))" lines="1">
|
||||
<CSaldo
|
||||
v-if="tools.isUserOk()"
|
||||
:account="account"
|
||||
:symbol="circuit.symbol"
|
||||
:color="circuit.color"
|
||||
@@ -54,7 +55,7 @@
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section side v-if="visu === costanti.USER_CIRCUITS">
|
||||
<q-item-section side v-if="visu === costanti.USER_CIRCUITS && tools.isUserOk()">
|
||||
<q-item-label>
|
||||
<q-btn rounded :icon="userStore.IsMyCircuitByName(circuit.name) ? `fas fa-ellipsis-h` : `fas fa-user`">
|
||||
<q-menu>
|
||||
@@ -89,7 +90,7 @@
|
||||
</q-btn>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side v-if="visu === costanti.REQ_CIRCUIT">
|
||||
<q-item-section side v-if="visu === costanti.REQ_CIRCUIT && tools.isUserOk()">
|
||||
<q-item-label>
|
||||
<q-btn rounded icon="fas fa-ellipsis-h">
|
||||
<q-menu>
|
||||
@@ -103,7 +104,7 @@
|
||||
</q-btn>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side v-if="visu === costanti.ASK_SENT_CIRCUIT">
|
||||
<q-item-section side v-if="visu === costanti.ASK_SENT_CIRCUIT && tools.isUserOk()">
|
||||
<q-item-label>
|
||||
<q-btn rounded icon="fas fa-ellipsis-h">
|
||||
<q-menu>
|
||||
|
||||
@@ -37,6 +37,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
noaut: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
|
||||
setup(props, { emit }) {
|
||||
|
||||
@@ -35,6 +35,11 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
noaut: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
username: {
|
||||
type: String,
|
||||
required: false,
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
:defaultnewrec="getdefaultnewrec"
|
||||
:filtercustom="filtercustom"
|
||||
v-bind="$attrs"
|
||||
:extraparams="extraparams">
|
||||
:extraparams="extraparams"
|
||||
:noaut="noaut">
|
||||
|
||||
</CGridTableRec>
|
||||
</div>
|
||||
|
||||
@@ -675,6 +675,7 @@ export interface IParamsQuery {
|
||||
lookup4?: IParLookup
|
||||
options?: number
|
||||
extrapar?: string
|
||||
noaut?: boolean
|
||||
}
|
||||
|
||||
export interface ISocial {
|
||||
|
||||
@@ -99,7 +99,8 @@ export default defineComponent({
|
||||
filter_gte: '',
|
||||
sortBy: myobj,
|
||||
descending,
|
||||
userId: ''
|
||||
userId: '',
|
||||
noaut: false,
|
||||
}
|
||||
|
||||
if (true) {
|
||||
|
||||
@@ -440,7 +440,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
},
|
||||
|
||||
isUserWaitingVerifAportador(): boolean {
|
||||
return !this.my.verified_by_aportador
|
||||
return tools.isLogged() && !this.my.verified_by_aportador
|
||||
},
|
||||
|
||||
isOldRegNotFinished(): boolean {
|
||||
|
||||
@@ -980,7 +980,8 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
sortBy: myobj,
|
||||
descending,
|
||||
userId: '',
|
||||
extrapar
|
||||
extrapar,
|
||||
noaut: false,
|
||||
}
|
||||
|
||||
params.table = table
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
</div>
|
||||
</q-card>
|
||||
</div>
|
||||
<div v-else-if="tools.isUserOk() || tools.isLogged()">
|
||||
<div v-else>
|
||||
<div v-if="myuser">
|
||||
<div v-if="tools.isUserOk() || tools.isLogged()">
|
||||
<CNotifAtTop />
|
||||
</div>
|
||||
<div class="q-gutter-sm q-pa-sm q-pb-md">
|
||||
<div
|
||||
v-if="myuser && myuser.date_reg"
|
||||
@@ -76,7 +78,7 @@
|
||||
<div class="col-12 text-h7 text-blue text-shadow-2">
|
||||
{{ myuser.username }}
|
||||
</div>
|
||||
<br>
|
||||
<br />
|
||||
|
||||
<CTitleBanner
|
||||
v-if="site.confpages.showCompetenze"
|
||||
@@ -87,8 +89,6 @@
|
||||
myclass="myshad"
|
||||
:canopen="true"
|
||||
>
|
||||
|
||||
|
||||
<div v-for="(card, ind) of mycards" :key="ind" :name="card.table">
|
||||
<div class="text-h6">{{ card.title }}</div>
|
||||
<div v-if="card.table === 'mygroups'">
|
||||
@@ -99,7 +99,11 @@
|
||||
class="q-my-sm q-mx-none"
|
||||
clickable
|
||||
>
|
||||
<CMyGroup :mygrp="grp" :visu="costanti.USER_GROUPS">
|
||||
<CMyGroup
|
||||
:mygrp="grp"
|
||||
:visu="costanti.USER_GROUPS"
|
||||
:noaut="true"
|
||||
>
|
||||
</CMyGroup>
|
||||
</span>
|
||||
</q-list>
|
||||
@@ -115,6 +119,7 @@
|
||||
<CMyCircuit
|
||||
:mycircuit="circuit"
|
||||
:visu="costanti.USER_CIRCUITS"
|
||||
:noaut="true"
|
||||
>
|
||||
</CMyCircuit>
|
||||
</span>
|
||||
@@ -126,6 +131,7 @@
|
||||
:filtercustom="filtroutente"
|
||||
:butt_modif_new="isMyRecord(myuser.username)"
|
||||
:visuinpage="true"
|
||||
:noaut="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -133,6 +139,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
|
||||
<q-dialog v-model="showPic" full-height full-width>
|
||||
<img :src="getImgUser()" :alt="username" class="full-width" />
|
||||
</q-dialog>
|
||||
|
||||
@@ -5,9 +5,6 @@
|
||||
<div v-if="caricato">caricato: {{ caricato }}</div>
|
||||
<div v-if="myuser">myuser: {{ myuser.username }}</div>
|
||||
</div>
|
||||
<div v-if="!tools.isLogged()">
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
<div
|
||||
v-if="!caricato"
|
||||
class="fit column no-wrap justify-evenly items-center content-start"
|
||||
@@ -32,6 +29,96 @@
|
||||
</div>
|
||||
</q-card>
|
||||
</div>
|
||||
<div v-else-if="!tools.isLogged()">
|
||||
<div class="q-gutter-sm q-pa-sm q-pb-md">
|
||||
<div
|
||||
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="myuser.profile ? getImgUser(myuser.profile) : ''"
|
||||
:alt="username"
|
||||
img-class="imgprofile"
|
||||
height="140px"
|
||||
@click="showPic = true"
|
||||
/>
|
||||
<q-badge
|
||||
v-if="tools.isUserOnline(myuser)"
|
||||
align="top"
|
||||
floating
|
||||
color="green"
|
||||
>online</q-badge
|
||||
>
|
||||
</q-avatar>
|
||||
</div>
|
||||
|
||||
<div class="last_access">
|
||||
OnLine: {{ tools.timeAgo(myuser.lasttimeonline) }}
|
||||
</div>
|
||||
|
||||
<div v-if="myuser.reported">
|
||||
<CTitleBanner
|
||||
title="⚠️ L'utente è stato Segnalato per comportamento non idoneo."
|
||||
bgcolor="bg-red"
|
||||
clcolor="text-white"
|
||||
>
|
||||
</CTitleBanner>
|
||||
</div>
|
||||
|
||||
<div v-if="site && site.confpages && site.confpages.showNameSurname">
|
||||
<div class="text-h6">
|
||||
<span v-if="checkifShow('name') && myuser.name">
|
||||
{{ myuser.name }}</span
|
||||
>
|
||||
<span v-if="checkifShow('surname') && myuser.surname"
|
||||
> {{ myuser.surname }}</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 text-h7 text-blue text-shadow-2">
|
||||
{{ myuser.username }}
|
||||
</div>
|
||||
<div class="col-12 text-h7">
|
||||
<span v-if="myuser.profile && myuser.profile.born_city_id">
|
||||
<CMyFieldRec
|
||||
title=""
|
||||
table="users"
|
||||
tablesel="cities"
|
||||
:id="myuser._id"
|
||||
:rec="myuser"
|
||||
field="profile.born_city_id"
|
||||
:canEdit="false"
|
||||
:canModify="false"
|
||||
>
|
||||
</CMyFieldRec>
|
||||
|
||||
{{ myuser.profile.born_city_str }}</span
|
||||
>
|
||||
<span
|
||||
v-if="
|
||||
myuser.profile &&
|
||||
myuser.profile.nationality &&
|
||||
myuser.profile.nationality !== 'Italia'
|
||||
"
|
||||
>({{ myuser.profile.nationality }})</span
|
||||
>
|
||||
</div>
|
||||
<div v-if="myuser._id" class="col-12 text-h8 q-mt-sm">
|
||||
<span v-if="myuser.profile.qualifica">
|
||||
<em
|
||||
><span class="qualifica">{{ myuser.profile.qualifica }}</span></em
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
<div v-if="myuser._id" class="col-12 text-h8 q-mt-sm">
|
||||
{{ myuser.profile.biografia }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<CCheckIfIsLogged></CCheckIfIsLogged>
|
||||
</div>
|
||||
<div v-else-if="tools.isUserOk() || tools.isLogged()">
|
||||
<div v-if="myuser">
|
||||
<CNotifAtTop />
|
||||
@@ -275,7 +362,6 @@
|
||||
/>
|
||||
|
||||
<q-btn
|
||||
|
||||
outline
|
||||
icon="fas fa-envelope"
|
||||
:color="$q.dark.isActive ? `shite` : `black`"
|
||||
|
||||
Reference in New Issue
Block a user