Mostrare il Bene, Servizio, solo ai Propri Gruppi.
Nella pagina profilo, i "Gruppi" personali non si vedevano !
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div v-if="numcol === 3" class="col-xs-4 col-sm-4 col-md-3 col-lg-2">
|
||||
<div class="q-ma-sm">
|
||||
<q-btn v-if="!small" class="mybox_3" :color="color" rounded push :to="to" v-bind="$attrs" :style="tools.getbackgroundGradient(color, 180)">
|
||||
<q-btn v-if="!small" :flat="flat" class="mybox_3" :color="color" rounded push :to="to" v-bind="$attrs" :style="tools.getbackgroundGradient(color, 180)">
|
||||
<q-icon class="q-ma-sm" :name="icon"/>
|
||||
<div class="q-ma-sm my-text_3 text-cls no-wrap"><span v-html="label"></span></div>
|
||||
</q-btn>
|
||||
<q-btn v-if="small" class="mybox_small" :color="color" rounded push :to="to" v-bind="$attrs" :style="tools.getbackgroundGradient(color, 180)">
|
||||
<q-btn v-if="small" :flat="flat" class="mybox_small" :color="color" rounded push :to="to" v-bind="$attrs" :style="tools.getbackgroundGradient(color, 180)">
|
||||
<q-icon class="q-ma-sm" :name="icon" size="sm"/>
|
||||
<div class="q-ma-xs my-text-small text-cls no-wrap"><span v-html="label"></span></div>
|
||||
</q-btn>
|
||||
@@ -13,11 +13,11 @@
|
||||
</div>
|
||||
<div v-else class="col-xs-6 col-sm-6 col-md-4 col-lg-3">
|
||||
<div class="q-ma-sm">
|
||||
<q-btn v-if="!small" class="mybox" :color="color" rounded push :to="to" v-bind="$attrs" :style="tools.getbackgroundGradient(color, 0)">
|
||||
<q-btn v-if="!small" :flat="flat" class="mybox" :color="color" rounded push :to="to" v-bind="$attrs" :style="tools.getbackgroundGradient(color, 0)">
|
||||
<q-icon class="q-ma-sm" size="3rem" :name="icon"/>
|
||||
<div class="q-ma-sm text-h5 text-cls no-wrap"><span v-html="label"></span></div>
|
||||
</q-btn>
|
||||
<q-btn v-if="small" class="mybox_small" :color="color" rounded push :to="to" v-bind="$attrs" :style="tools.getbackgroundGradient(color, 0)">
|
||||
<q-btn v-if="small" :flat="flat" class="mybox_small" :color="color" rounded push :to="to" v-bind="$attrs" :style="tools.getbackgroundGradient(color, 0)">
|
||||
<q-icon class="q-ma-sm" :name="icon" size="sm"/>
|
||||
<div class="q-ma-xs my-text-small text-cls no-wrap"><span v-html="label"></span></div>
|
||||
</q-btn>
|
||||
|
||||
@@ -31,12 +31,18 @@ export default defineComponent({
|
||||
return costanti.MAINCARDS.filter((rec: IMainCard) => rec.visuonstat)
|
||||
})
|
||||
|
||||
const visulinks = computed(() => {
|
||||
// @ts-ignore
|
||||
return costanti.MAINCARDS.filter((rec: IMainCard) => rec.link)
|
||||
})
|
||||
|
||||
return {
|
||||
userStore,
|
||||
tools,
|
||||
calcstat,
|
||||
shared_consts,
|
||||
visustat,
|
||||
visulinks,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="q-ma-md">
|
||||
<div class="row q-my-md shadow" style="border-radius: 4px;border: 1px solid rgba(0, 0, 0, 0.12);">
|
||||
<div class="col-md-3 col-lg-3 col-sm-12 col-xs-12 box_4" style="border-left: 1px solid #efefef;"
|
||||
<!--<div class="col-md-3 col-lg-3 col-sm-12 col-xs-12 box_4" style="border-left: 1px solid #efefef;"
|
||||
v-bind:class="{'border-top': $q.platform.is.mobile}">
|
||||
<q-card class="no-shadow q-pa-sm">
|
||||
<q-item class="q-pb-none q-pt-xs">
|
||||
@@ -26,24 +26,24 @@
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-card>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<div v-for="(rec, index) of visustat" :class="`col-md-3 col-lg-3 col-sm-6 col-xs-6 text-` + rec.color"
|
||||
style="border-left: 1px solid #efefef;" :key="index"
|
||||
>
|
||||
<q-card class="no-shadow q-pa-sm">
|
||||
<q-item class="q-pb-none q-pt-xs">
|
||||
<q-item class="q-pb-none q-pt-xs cursor-pointer" :to="rec.to">
|
||||
<q-item-section>
|
||||
<q-item-label class="text-h4" style="font-weight: 500;letter-spacing: 3px;">
|
||||
{{ calcstat.numByTab[rec.table] }}
|
||||
</q-item-label>
|
||||
<q-item-label :class="!$q.dark.isActive? 'text-grey-7':'text-white'" style="letter-spacing: 1px;">
|
||||
<q-item-label :class="(!$q.dark.isActive? 'text-grey-7':'text-white') + ` title_view_shadow`" style="letter-spacing: 1px;">
|
||||
{{ rec.title }}
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section side>
|
||||
<q-icon :name="rec.icon" :class="`text-` + rec.color" size="60px"></q-icon>
|
||||
<q-icon :name="rec.icon" :class="`text-` + rec.color" size="50px"></q-icon>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item class="q-py-xs" style="min-height: unset">
|
||||
@@ -56,6 +56,26 @@
|
||||
</q-card>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row q-my-md shadow" style="border-radius: 4px;border: 1px solid rgba(0, 0, 0, 0.12);">
|
||||
<div v-for="(rec, index) of visulinks" :class="`col-md-3 col-lg-3 col-sm-6 col-xs-6 text-` + rec.color"
|
||||
style="border-left: 1px solid #efefef;" :key="index"
|
||||
>
|
||||
<q-card class="no-shadow q-pa-sm">
|
||||
<q-item class="q-pb-none q-pt-xs cursor-pointer" :to="rec.to">
|
||||
<q-item-section>
|
||||
<q-item-label :class="(!$q.dark.isActive? 'text-grey-7':'text-white') + ` title_view_shadow`" style="letter-spacing: 0.5px;">
|
||||
{{ rec.title }}
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section side>
|
||||
<q-icon :name="rec.icon" :class="`text-` + rec.color" size="50px"></q-icon>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-card>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -300,6 +300,17 @@ export default defineComponent({
|
||||
// param1: shared_consts.PARAM_SHOW_PROVINCE,
|
||||
tablesel: 'cities',
|
||||
},
|
||||
{
|
||||
label: 'Visiblità',
|
||||
table: 'pub_to_share',
|
||||
key: 'pub_to_share',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
|
||||
addall: false,
|
||||
arrvalue: [],
|
||||
useinput: false,
|
||||
filter: null,
|
||||
},
|
||||
{
|
||||
label: 'Offro/Cerco',
|
||||
table: 'adtypes',
|
||||
@@ -452,6 +463,18 @@ export default defineComponent({
|
||||
// param1: shared_consts.PARAM_SHOW_PROVINCE,
|
||||
tablesel: 'cities',
|
||||
},
|
||||
{
|
||||
label: 'Visiblità',
|
||||
table: 'pub_to_share',
|
||||
key: 'pub_to_share',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
|
||||
addall: false,
|
||||
arrvalue: [],
|
||||
useinput: true,
|
||||
filter: null,
|
||||
tablesel: 'pub_to_share',
|
||||
},
|
||||
{
|
||||
label: 'Data Inizio',
|
||||
table: 'caldate',
|
||||
@@ -542,6 +565,18 @@ export default defineComponent({
|
||||
// param1: shared_consts.PARAM_SHOW_PROVINCE,
|
||||
tablesel: 'cities',
|
||||
},
|
||||
{
|
||||
label: 'Visiblità',
|
||||
table: 'pub_to_share',
|
||||
key: 'pub_to_share',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
|
||||
addall: false,
|
||||
arrvalue: [],
|
||||
useinput: true,
|
||||
filter: null,
|
||||
tablesel: 'pub_to_share',
|
||||
},
|
||||
{
|
||||
label: 'Tipologia',
|
||||
table: toolsext.TABTYPEHOSP,
|
||||
@@ -633,6 +668,18 @@ export default defineComponent({
|
||||
// param1: shared_consts.PARAM_SHOW_PROVINCE,
|
||||
tablesel: 'cities',
|
||||
},
|
||||
{
|
||||
label: 'Visiblità',
|
||||
table: 'pub_to_share',
|
||||
key: 'pub_to_share',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'pub_to_share', shared_consts.PUBTOSHARE.ALL, true),
|
||||
addall: false,
|
||||
arrvalue: [],
|
||||
useinput: true,
|
||||
filter: null,
|
||||
tablesel: 'pub_to_share',
|
||||
},
|
||||
{
|
||||
label: 'Offro/Cerco',
|
||||
table: 'adtypes',
|
||||
@@ -794,6 +841,18 @@ export default defineComponent({
|
||||
tablesel: 'cities',
|
||||
icon: 'fas fa-map-marker-alt',
|
||||
},
|
||||
{
|
||||
label: 'Visiblità',
|
||||
table: 'visibility',
|
||||
key: 'visibility',
|
||||
type: costanti.FieldType.multiselect,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'visibility', costanti.FILTER_TUTTI),
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
useinput: true,
|
||||
filter: null,
|
||||
tablesel: 'visibility',
|
||||
},
|
||||
{
|
||||
label: 'Categorie',
|
||||
table: 'catgrps',
|
||||
@@ -927,6 +986,7 @@ export default defineComponent({
|
||||
idStatusSkill: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
numLevel: 1,
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
@@ -943,6 +1003,7 @@ export default defineComponent({
|
||||
comune: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.qualifica': 1,
|
||||
}
|
||||
},
|
||||
@@ -987,6 +1048,7 @@ export default defineComponent({
|
||||
idStatusSkill: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
dateTimeStart: 1,
|
||||
dateTimeEnd: 1,
|
||||
numLevel: 1,
|
||||
@@ -1005,6 +1067,7 @@ export default defineComponent({
|
||||
comune: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.qualifica': 1,
|
||||
}
|
||||
},
|
||||
@@ -1056,6 +1119,7 @@ export default defineComponent({
|
||||
idContribType: 1,
|
||||
photos: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
note: 1,
|
||||
website: 1,
|
||||
link_maplocation: 1,
|
||||
@@ -1099,6 +1163,7 @@ export default defineComponent({
|
||||
idStatusSkill: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
numLevel: 1,
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
@@ -1115,6 +1180,7 @@ export default defineComponent({
|
||||
comune: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.qualifica': 1,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
<template>
|
||||
<q-page class="text-white">
|
||||
<q-page class="text-black">
|
||||
|
||||
<div class="landing">
|
||||
|
||||
<section class="bg-primary">
|
||||
<section class="bg-white">
|
||||
<div class=" row justify-between items-start q-col-gutter-sm">
|
||||
<div class="col-12">
|
||||
<div class="feature-item"><i
|
||||
aria-hidden="true"
|
||||
class="q-icon fas fa-hands-holding"> </i>
|
||||
<div class="text-big" v-html="t('homepage.freesostieni.title')"></div>
|
||||
<div class="feature-item" style="margin-top: 0px !important;">
|
||||
<div class="text-big" style="margin: 0px !important; padding: 2px !important;" v-html="t('homepage.freesostieni.title')"></div>
|
||||
<p class="feat-descr" v-html="t('homepage.freesostieni.descr')"></p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -104,13 +104,13 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
/* keyMain: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
/* keyMain: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
|
||||
*/
|
||||
*/
|
||||
nodataLabel: {
|
||||
type: String,
|
||||
required: false,
|
||||
@@ -250,7 +250,7 @@ export default defineComponent({
|
||||
|
||||
const serverData: any = ref([])
|
||||
const spinner_visible = ref(false)
|
||||
const searchList = ref(<ISearchList[]> [])
|
||||
const searchList = ref(<ISearchList[]>[])
|
||||
|
||||
let actual = ''
|
||||
|
||||
@@ -511,7 +511,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (item.value && recProvince && idRegion !== costanti.FILTER_TUTTI) {
|
||||
arrfilter_provices.push({key: 'reg', value: idRegion })
|
||||
arrfilter_provices.push({ key: 'reg', value: idRegion })
|
||||
}
|
||||
|
||||
} else if (item.table === 'provinces') {
|
||||
@@ -525,7 +525,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (item.value && recCities && idProvince !== costanti.FILTER_TUTTI) {
|
||||
arrfilter_cities.push({key: 'prov', value: idProvince })
|
||||
arrfilter_cities.push({ key: 'prov', value: idProvince })
|
||||
}
|
||||
|
||||
} else if (item.table === 'cities') {
|
||||
@@ -551,13 +551,18 @@ export default defineComponent({
|
||||
|
||||
}
|
||||
}
|
||||
} else if (shared_consts.TABLES_WITH_SPECIAL_FILTER.includes(item.table)) {
|
||||
|
||||
objitem[item.key] = item.value
|
||||
filtercustom.push(objitem)
|
||||
|
||||
} else if (shared_consts.COL_WITH_FILTER_GTE.includes(item.key)) {
|
||||
objitem[item.key] = item.value
|
||||
filter_gte.push(objitem)
|
||||
|
||||
} else if (item.value > 0) {
|
||||
objitem[item.key] = item.value
|
||||
filtersearch.push(objitem)
|
||||
filtersearch.push(objitem)
|
||||
|
||||
} else if (item.arrvalue.length > 0) {
|
||||
|
||||
@@ -592,7 +597,8 @@ export default defineComponent({
|
||||
|
||||
if (idSector > 0) {
|
||||
// idSector
|
||||
obj2['sector._id'] = idSector
|
||||
// obj2['sector._id'] = idSector
|
||||
obj2['idSector'] = idSector
|
||||
filtersearch2.push(obj2)
|
||||
}
|
||||
if (idSkill > 0) {
|
||||
@@ -1047,7 +1053,7 @@ export default defineComponent({
|
||||
function saveFieldValue(mydata: any) {
|
||||
// console.log('saveFieldValue', mydata)
|
||||
|
||||
if (newRecordBool.value){
|
||||
if (newRecordBool.value) {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -1138,14 +1144,14 @@ export default defineComponent({
|
||||
const funccancel = 0
|
||||
const par = {
|
||||
param1: item._id,
|
||||
param2: {...item},
|
||||
param2: { ...item },
|
||||
}
|
||||
|
||||
if (col.action === lists.MenuAction.CAN_EDIT_TABLE) {
|
||||
console.log('Edit', item)
|
||||
selItem(item, col)
|
||||
recModif.value = {...item}
|
||||
recSaved.value = {...item}
|
||||
recModif.value = { ...item }
|
||||
recSaved.value = { ...item }
|
||||
editRecordBool.value = true
|
||||
} else {
|
||||
|
||||
@@ -1230,7 +1236,7 @@ export default defineComponent({
|
||||
// console.log('changecol', mytable.value)
|
||||
if (!!mytable.value) {
|
||||
let arrcol = []
|
||||
let col: IColGridTable = {name: '', sortable: false}
|
||||
let col: IColGridTable = { name: '', sortable: false }
|
||||
for (col of mycolumns.value) {
|
||||
if (col.field !== costanti.NOFIELD) {
|
||||
let obj = {
|
||||
@@ -1445,7 +1451,7 @@ export default defineComponent({
|
||||
if (col.required) {
|
||||
// console.log('newRecord.value', newRecord.value, newRecord.value[col.name])
|
||||
if (tools.isArray(newRecord.value[col.name])) {
|
||||
if (newRecord.value[col.name].length <= 0){
|
||||
if (newRecord.value[col.name].length <= 0) {
|
||||
return translate(col.label_trans)
|
||||
}
|
||||
} else {
|
||||
@@ -1490,7 +1496,7 @@ export default defineComponent({
|
||||
const data = await globalStore.saveTable(mydata)
|
||||
.then((ris) => {
|
||||
if (ris.hasOwnProperty('code')) {
|
||||
tools.checkErrors($q, ris.code, '');
|
||||
tools.checkErrors($q, ris.code, '')
|
||||
} else {
|
||||
if (ris) {
|
||||
// console.log('ris', ris)
|
||||
@@ -1522,7 +1528,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function cancelrecModif() {
|
||||
recModif.value = {...recSaved.value}
|
||||
recModif.value = { ...recSaved.value }
|
||||
|
||||
editRecordBool.value = false
|
||||
/*if (recModif.value._id) {
|
||||
@@ -1580,7 +1586,7 @@ export default defineComponent({
|
||||
return ((rec._id > 0 && typeof rec._id === 'number') || rec._id !== 'number') && rec !== -100
|
||||
}
|
||||
|
||||
function showColCheck(col: IColGridTable, tipovis: number, visulabel:boolean, value: any = '', record: any = null){
|
||||
function showColCheck(col: IColGridTable, tipovis: number, visulabel: boolean, value: any = '', record: any = null) {
|
||||
|
||||
//if (col.isadvanced_field && !showfilteradv.value)
|
||||
// return false
|
||||
@@ -1657,6 +1663,7 @@ export default defineComponent({
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
function getActualDate(mydate: any) {
|
||||
return actualDate.value
|
||||
}
|
||||
|
||||
@@ -23,11 +23,15 @@ export default defineComponent({
|
||||
|
||||
const cardsbig = computed(() => {
|
||||
// @ts-ignore
|
||||
return costanti.MAINCARDS.filter((rec: IMainCard) => !rec.small && rec.visible)
|
||||
return costanti.MAINCARDS.filter((rec: IMainCard) => !rec.small && rec.visible && !rec.link && !rec.visuonstat)
|
||||
})
|
||||
|
||||
const cardssmall = computed(() => {
|
||||
return costanti.MAINCARDS.filter((rec: any) => rec.small && rec.visible)
|
||||
return costanti.MAINCARDS.filter((rec: any) => rec.small && rec.visible && !rec.link && !rec.visuonstat)
|
||||
})
|
||||
|
||||
const arrlinks = computed(() => {
|
||||
return costanti.MAINCARDS.filter((rec: any) => rec.link && rec.visible)
|
||||
})
|
||||
|
||||
return {
|
||||
@@ -36,6 +40,7 @@ export default defineComponent({
|
||||
costanti,
|
||||
cardsbig,
|
||||
cardssmall,
|
||||
arrlinks,
|
||||
showInfo,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,6 +76,10 @@ export default defineComponent({
|
||||
emit('setCmd', cmd, myusername, value)
|
||||
}
|
||||
|
||||
function myusername() {
|
||||
return userStore.my.username
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -88,6 +92,7 @@ export default defineComponent({
|
||||
userStore,
|
||||
tools,
|
||||
table,
|
||||
myusername,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -33,6 +33,29 @@
|
||||
</q-btn>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side v-if="visu === costanti.USER_GROUPS">
|
||||
<q-item-label>
|
||||
<q-btn rounded :icon="userStore.IsMyGroupByGroupname(grp.groupname) ? `fas fa-ellipsis-h` : `fas fa-user`">
|
||||
<q-menu>
|
||||
<q-list v-if="(!userStore.IsMyGroupByGroupname(grp.groupname) && !userStore.IsAskedGroupByGroupname(grp.groupname))" style="min-width: 200px">
|
||||
<q-item clickable v-close-popup @click="tools.setCmd($q, shared_consts.GROUPSCMD.REQGROUP, myusername(), true, grp.groupname)">
|
||||
<q-item-section>{{ $t('groups.ask_group') }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-list v-else-if="(!userStore.IsMyGroupByGroupname(grp.groupname) && userStore.IsAskedGroupByGroupname(grp.groupname))" style="min-width: 200px">
|
||||
<q-item clickable v-close-popup @click="tools.setCmd($q, shared_consts.GROUPSCMD.REQGROUP, myusername(), false, grp.groupname)">
|
||||
<q-item-section>{{ $t('groups.cancel_ask_group') }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-list v-else-if="userStore.IsMyGroupByGroupname(grp.groupname)" style="min-width: 200px">
|
||||
<q-item clickable v-close-popup @click="tools.setCmd($q, shared_consts.GROUPSCMD.REMOVE_FROM_MYGROUP, myusername(), '', grp.groupname)">
|
||||
<q-item-section>{{ $t('groups.exit_group') }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side v-if="visu === costanti.REQ_GROUP">
|
||||
<q-item-label>
|
||||
<q-btn rounded icon="fas fa-ellipsis-h">
|
||||
@@ -76,8 +99,8 @@
|
||||
</q-item>
|
||||
</q-list>
|
||||
<q-list v-else-if="userStore.IsMyGroupByGroupname(grp.groupname)" style="min-width: 200px">
|
||||
<q-item clickable v-close-popup @click="tools.setCmd($q, shared_consts.GROUPSCMD.REMOVE_FROM_MYGROUPS, myusername(), '', grp.groupname)">
|
||||
<q-item-section>{{ $t('groups.remove_from_mygroups') }}</q-item-section>
|
||||
<q-item clickable v-close-popup @click="tools.setCmd($q, shared_consts.GROUPSCMD.REMOVE_FROM_MYGROUP, myusername(), '', grp.groupname)">
|
||||
<q-item-section>{{ $t('groups.exit_group') }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
|
||||
@@ -54,7 +54,7 @@ export default defineComponent({
|
||||
try {
|
||||
if (props.modelValue === costanti.GROUPS) {
|
||||
arr = userStore.my.profile.mygroups
|
||||
} else if (props.modelValue === costanti.MY_GROUPS) {
|
||||
} else if (props.modelValue === costanti.MY_GROUPS || props.modelValue === costanti.USER_GROUPS) {
|
||||
arr = userStore.groups.filter((grp: IMyGroup) => userStore.my.profile.mygroups.findIndex((rec: IMyGroup) => rec.groupname === grp.groupname) >= 0)
|
||||
} else if (props.modelValue === costanti.MANAGE_GROUPS) {
|
||||
arr = userStore.my.profile.manage_mygroups
|
||||
@@ -98,20 +98,10 @@ export default defineComponent({
|
||||
return (arr) ? arr.length : 0
|
||||
})
|
||||
|
||||
function loadGroups() {
|
||||
async function loadGroups() {
|
||||
// Carica il profilo di quest'utente
|
||||
if (username.value) {
|
||||
userStore.loadGroups(username.value).then((ris) => {
|
||||
// console.log('ris', ris)
|
||||
if (ris) {
|
||||
userStore.my.profile.mygroups = ris.mygroups ? ris.mygroups : []
|
||||
userStore.my.profile.list_usersgroup = ris.listUsersGroup ? ris.listUsersGroup : []
|
||||
userStore.groups = ris.listgroups ? ris.listgroups : []
|
||||
userStore.my.profile.asked_groups = ris.listSentRequestGroups ? ris.listSentRequestGroups : []
|
||||
filtroutente.value = [{ userId: userStore.my._id }]
|
||||
}
|
||||
})
|
||||
|
||||
filtroutente.value = await tools.loadGroupsByUsername(username.value)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -533,7 +533,7 @@
|
||||
<q-btn
|
||||
v-if="myvalue && col.field_extra1"
|
||||
icon="far fa-file-alt" :label="col.titlepopupedit" color="primary" text-color="white"
|
||||
:to="getToByCol(col)"
|
||||
:to="tools.getToByCol(col)"
|
||||
>
|
||||
</q-btn>
|
||||
</div>
|
||||
|
||||
@@ -105,6 +105,7 @@ export default defineComponent({
|
||||
idStatusSkill: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
numLevel: 1,
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
@@ -121,6 +122,7 @@ export default defineComponent({
|
||||
comune: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.qualifica': 1,
|
||||
}
|
||||
},
|
||||
@@ -139,6 +141,7 @@ export default defineComponent({
|
||||
idStatusSkill: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
numLevel: 1,
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
@@ -155,6 +158,7 @@ export default defineComponent({
|
||||
surname: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.qualifica': 1,
|
||||
}
|
||||
},
|
||||
@@ -173,6 +177,7 @@ export default defineComponent({
|
||||
idStatusSkill: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
numLevel: 1,
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
@@ -189,6 +194,7 @@ export default defineComponent({
|
||||
comune: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.qualifica': 1,
|
||||
}
|
||||
},
|
||||
@@ -232,6 +238,7 @@ export default defineComponent({
|
||||
idStatusSkill: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
numLevel: 1,
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
@@ -248,6 +255,7 @@ export default defineComponent({
|
||||
comune: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.qualifica': 1,
|
||||
}
|
||||
},
|
||||
@@ -268,6 +276,7 @@ export default defineComponent({
|
||||
idStatusSkill: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
numLevel: 1,
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
@@ -284,6 +293,7 @@ export default defineComponent({
|
||||
surname: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.qualifica': 1,
|
||||
}
|
||||
},
|
||||
@@ -304,6 +314,7 @@ export default defineComponent({
|
||||
idStatusSkill: 1,
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
pub_to_share: 1,
|
||||
numLevel: 1,
|
||||
adType: 1,
|
||||
photos: 1,
|
||||
@@ -320,6 +331,7 @@ export default defineComponent({
|
||||
comune: 1,
|
||||
mycities: 1,
|
||||
'profile.img': 1,
|
||||
'profile.mygroups': 1,
|
||||
'profile.qualifica': 1,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<div class="flex flex-center">
|
||||
|
||||
<CCardState :mytext="$t('pages.statusreg.verifieds')" :myval="datastat.num_teleg_attivo"
|
||||
<CCardState :mytext="$t('pages.statusreg.reg')" :myval="datastat.num_teleg_attivo"
|
||||
mycolor="blue"
|
||||
:myperc="(datastat.num_teleg_attivo / datastat.num_reg) * 100"></CCardState>
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@ import { tools } from '@store/Modules/tools'
|
||||
|
||||
import { CVerifyEmail } from '@src/components/CVerifyEmail'
|
||||
import { CVerifyTelegram } from '@src/components/CVerifyTelegram'
|
||||
|
||||
import { static_data } from '@src/db/static_data'
|
||||
|
||||
import MixinUsers from '@/mixins/mixin-users'
|
||||
|
||||
|
||||
@@ -29,6 +32,7 @@ export default defineComponent({
|
||||
userStore,
|
||||
globalStore,
|
||||
tools,
|
||||
static_data,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -60,6 +60,17 @@
|
||||
|
||||
</q-banner>
|
||||
</div>
|
||||
<div v-else-if="userStore.isOldRegNotFinished()">
|
||||
<div v-if="static_data.functionality.ENABLE_REG_NEED_TELEGRAM && !tools.isTelegOk()">
|
||||
<h3>La Verifica su Telegram non è stata completata, pertanto se ancora non avete inserito nessun annuncio (Bene, Servizio, ecc...), è consigliato cancellare la vecchia registrazione per ripetere con una nuova registrazione.</h3><br>
|
||||
<h3>Per contattare il supporto tecnico e farvi cancellare la registrazione: "Help - RISO", clicca qui sotto:</h3><br>
|
||||
<h4><a href="https://t.me/+dTHFNIwkc_phNmQ8" target="_blank"><strong>Entra in Supporto Tecnico su Telegram: (Help - RISO)</strong></a></h4>
|
||||
<br><br>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user