- Gruppi (3) - lista degli utenti del gruppo

This commit is contained in:
paoloar77
2022-02-05 23:28:01 +01:00
parent 498c28773f
commit 980ff4b48e
28 changed files with 642 additions and 117 deletions

View File

@@ -51,6 +51,7 @@ export const DefaultUser: IUserFields = {
friends: [],
req_friends: [],
mygroups: [],
manage_mygroups: [],
asked_friends: [],
asked_groups: [],
},
@@ -95,6 +96,7 @@ export const DefaultProfile: IUserProfile = {
friends: [],
req_friends: [],
mygroups: [],
manage_mygroups: [],
asked_friends: [],
asked_groups: [],
}
@@ -177,7 +179,7 @@ export const useUserStore = defineStore('UserStore', {
},
IsMyGroupByGroupname(groupname: string): boolean {
if (this.my.profile.friends)
if (this.my.profile.mygroups)
return this.my.profile.mygroups.findIndex((rec) => rec.groupname === groupname) >= 0
else
return false
@@ -475,6 +477,7 @@ export const useUserStore = defineStore('UserStore', {
this.my.profile = DefaultProfile
// Memory
this.my.profile.manage_mygroups = []
this.my.profile.asked_friends = []
this.my.profile.asked_groups = []
}
@@ -856,7 +859,7 @@ export const useUserStore = defineStore('UserStore', {
verified_by_aportador,
made_gift,
perm,
profile: { img, teleg_id, myshares: [], friends: [], req_friends: [], asked_friends: [], mygroups: [], asked_groups: [] },
profile: { img, teleg_id, myshares: [], friends: [], req_friends: [], asked_friends: [], mygroups: [], asked_groups: [], manage_mygroups: [] },
})
isLogged = true