- varie sistemazioni: filtri iscritti, profilo, ecc...
This commit is contained in:
@@ -938,6 +938,40 @@ export default defineComponent({
|
||||
arrfilter_cities.push({ key: 'prov', value: idProvince })
|
||||
}
|
||||
|
||||
} else if (item.table === shared_consts.TABFILTRI_UTENTE) {
|
||||
if (item.value === shared_consts.FILTER_USER_SENZA_PROVINCE) {
|
||||
filtercustom.push({ 'profile.resid_province': { $exists: false } });
|
||||
} else if (item.value === shared_consts.FILTER_USER_CON_CIRCUITO) {
|
||||
filtercustom.push({
|
||||
'profile.mycircuits': { $exists: true, $ne: [] }
|
||||
});
|
||||
} else if (item.value === shared_consts.FILTER_USER_SENZA_CIRCUITO) {
|
||||
filtercustom.push({
|
||||
$or: [
|
||||
{ 'profile.mycircuits': { $exists: false } },
|
||||
{ 'profile.mycircuits': { $eq: [] } }
|
||||
]
|
||||
});
|
||||
} else if (item.value === shared_consts.FILTER_USER_PROVINCE) {
|
||||
filtercustom.push({ 'profile.resid_province': { $exists: true, $ne: '' } });
|
||||
} else if (item.value === shared_consts.FILTER_USER_TELEGRAM_BLOCKED) {
|
||||
filtercustom.push({ 'profile.teleg_id_old': { $gt: 1 } });
|
||||
} else if (item.value === shared_consts.FILTER_USER_WITHOUT_USERNAME_TELEGRAM) {
|
||||
filtercustom.push({
|
||||
$or: [
|
||||
{ 'profile.username_telegram': { $exists: false } },
|
||||
{ 'profile.username_telegram': { $exists: true, $eq: '' } }],
|
||||
|
||||
});
|
||||
|
||||
} else if (item.value === shared_consts.FILTER_USER_NO_VERIFIED_APORTADOR) {
|
||||
filtercustom.push({
|
||||
verified_by_aportador: { $exists: false },
|
||||
});
|
||||
} else if (item.value === shared_consts.FILTER_USER_NO_TELEGRAM_ID) {
|
||||
filtercustom.push({ 'profile.teleg_id': { $lt: 1 } });
|
||||
|
||||
}
|
||||
} else if (item.table === 'cities') {
|
||||
|
||||
if (item.value && item.value.hasOwnProperty('_id')) {
|
||||
|
||||
@@ -1384,7 +1384,7 @@
|
||||
@hide="hidewindow"
|
||||
class="dialog_class"
|
||||
:persistent="true"
|
||||
:maximized="false"
|
||||
:maximized="$q.screen.lt.sm"
|
||||
>
|
||||
<q-card class="dialog_card">
|
||||
<q-bar dense class="bg-primary text-white">
|
||||
|
||||
@@ -79,7 +79,7 @@ export default defineComponent({
|
||||
const notifStore = useNotifStore()
|
||||
|
||||
const mycards = computed(() => {
|
||||
return costanti.MAINCARDS.filter((rec: any) => rec.table && rec.visible)
|
||||
return costanti.MAINCARDS.filter((rec: any) => rec.table && rec.showinprofile)
|
||||
})
|
||||
const optionsMainCards = ref({})
|
||||
|
||||
@@ -105,7 +105,7 @@ export default defineComponent({
|
||||
// Carica il profilo di quest'utente
|
||||
if (username.value) {
|
||||
await userStore.loadUserActivities({ username: username.value, idnotif: idnotif.value }).then((ris) => {
|
||||
// console.log('loadUserProfile = ', ris)
|
||||
// console.log('loadUserActivities = ', ris)
|
||||
myuser.value = ris
|
||||
if (myuser.value) {
|
||||
// filtro_eventi.value = [{ userId: myuser.value._id }, { dateTimeStart: { $gte: today } }]
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
</span>
|
||||
</q-list>
|
||||
</div>
|
||||
<div v-else-if="card.table === shared_consts.TAB_MYCIRCUITS">
|
||||
<div v-else-if="card.table === shared_consts.TABLES_CIRCUITS">
|
||||
<div class="text-h6">{{ card.title }}</div>
|
||||
<q-list>
|
||||
<span
|
||||
|
||||
@@ -728,7 +728,7 @@
|
||||
v-html="
|
||||
tools.getlinkhref(
|
||||
myrec.website,
|
||||
t('services.visit_website')
|
||||
t('services.visit_website', {link: tools.getMainLink(myrec.website)})
|
||||
)
|
||||
"
|
||||
/></q-item-label>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
circuit.numMembers
|
||||
}}</span></q-chip
|
||||
>
|
||||
|
||||
|
||||
<span v-if="circuit.link_group" :class="` `">
|
||||
<q-btn
|
||||
icon="fab fa-telegram"
|
||||
@@ -59,8 +59,9 @@
|
||||
v-if="circuit.longdescr"
|
||||
caption
|
||||
lines="3"
|
||||
><em>{{ circuit.longdescr }}</em></q-item-label
|
||||
>
|
||||
><em>
|
||||
<div v-html="circuit.longdescr"></div> </em
|
||||
></q-item-label>
|
||||
<q-item-label caption lines="2">
|
||||
<q-chip
|
||||
v-if="circuit.status !== undefined && circuit.status !== 0"
|
||||
|
||||
Reference in New Issue
Block a user