Non si vedono le foto nella lista degli utenti (sul gruppo)
Corretto le varie funzionalità di Richieste di ingresso e uscita dai Gruppi
This commit is contained in:
@@ -74,7 +74,21 @@ export default defineComponent({
|
||||
|
||||
watch(() => myrecfiltertoggle.value, (value: any, oldval: any) => {
|
||||
if (value === tools.FILTER_MYREC) {
|
||||
filtercustom.value = [{ userId: userStore.my._id }]
|
||||
if (props.table === toolsext.TABMYGROUPS) {
|
||||
filtercustom.value = [{
|
||||
'admins': {
|
||||
$elemMatch: { username: { $eq: userStore.my.username } }
|
||||
},
|
||||
}]
|
||||
|
||||
} else {
|
||||
filtercustom.value = [{ userId: userStore.my._id }]
|
||||
}
|
||||
|
||||
} else if (value === tools.FILTER_MYFOLLOW) {
|
||||
if (props.table === toolsext.TABMYGROUPS) {
|
||||
|
||||
}
|
||||
} else {
|
||||
filtercustom.value = []
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
:options="[
|
||||
{label: 'Tutti', value: tools.FILTER_ALL},
|
||||
{label: 'Personali', value: tools.FILTER_MYREC},
|
||||
// {label: 'Seguo', value: tools.FILTER_MYFOLLOW},
|
||||
]"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -87,7 +87,6 @@ export default defineComponent({
|
||||
shared_consts,
|
||||
userStore,
|
||||
tools,
|
||||
$q,
|
||||
table,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -55,7 +55,7 @@ export default defineComponent({
|
||||
if (props.modelValue === costanti.GROUPS) {
|
||||
arr = userStore.my.profile.mygroups
|
||||
} else if (props.modelValue === costanti.MY_GROUPS) {
|
||||
arr = userStore.my.profile.mygroups
|
||||
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
|
||||
} else if (props.modelValue === costanti.ASK_SENT_GROUP) {
|
||||
@@ -71,7 +71,7 @@ export default defineComponent({
|
||||
const myoptions = computed(() => {
|
||||
const mybutt = []
|
||||
mybutt.push({ label: t('mypages.find_group'), value: costanti.FIND_GROUP })
|
||||
mybutt.push({ label: t('mypages.manage_my_groups') + ' (' + numManageGroups.value + ')', value: costanti.MANAGE_GROUPS })
|
||||
// mybutt.push({ label: t('mypages.manage_my_groups') + ' (' + numManageGroups.value + ')', value: costanti.MANAGE_GROUPS })
|
||||
mybutt.push({ label: t('mypages.follow_groups') + ' (' + numMyGroups.value + ')', value: costanti.MY_GROUPS })
|
||||
|
||||
if (numAskSentGroups.value > 0 || props.modelValue === costanti.ASK_SENT_GROUP)
|
||||
@@ -135,6 +135,7 @@ export default defineComponent({
|
||||
listgroupsfiltered,
|
||||
updateValue,
|
||||
myoptions,
|
||||
userStore,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user