- Gruppi (2)
This commit is contained in:
@@ -50,7 +50,7 @@ export const DefaultUser: IUserFields = {
|
||||
myshares: [],
|
||||
friends: [],
|
||||
req_friends: [],
|
||||
groups: [],
|
||||
mygroups: [],
|
||||
asked_friends: [],
|
||||
asked_groups: [],
|
||||
},
|
||||
@@ -94,7 +94,7 @@ export const DefaultProfile: IUserProfile = {
|
||||
myshares: [],
|
||||
friends: [],
|
||||
req_friends: [],
|
||||
groups: [],
|
||||
mygroups: [],
|
||||
asked_friends: [],
|
||||
asked_groups: [],
|
||||
}
|
||||
@@ -178,7 +178,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
|
||||
IsMyGroupByGroupname(groupname: string): boolean {
|
||||
if (this.my.profile.friends)
|
||||
return this.my.profile.groups.findIndex((rec) => rec.groupname === groupname) >= 0
|
||||
return this.my.profile.mygroups.findIndex((rec) => rec.groupname === groupname) >= 0
|
||||
else
|
||||
return false
|
||||
},
|
||||
@@ -234,7 +234,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
|
||||
try {
|
||||
//++Todo: Sistemare!
|
||||
return costanti.DIR_UPLOAD + 'groups/' + group.groupname + '/' + group.photos[0].directory
|
||||
return costanti.DIR_UPLOAD + 'mygroups/' + group.groupname + '/' + group.photos[0].imagefile
|
||||
} catch (e) {
|
||||
}
|
||||
return 'images/noimg.png'
|
||||
@@ -856,7 +856,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
verified_by_aportador,
|
||||
made_gift,
|
||||
perm,
|
||||
profile: { img, teleg_id, myshares: [], friends: [], req_friends: [], asked_friends: [], groups: [], asked_groups: [] },
|
||||
profile: { img, teleg_id, myshares: [], friends: [], req_friends: [], asked_friends: [], mygroups: [], asked_groups: [] },
|
||||
})
|
||||
|
||||
isLogged = true
|
||||
|
||||
Reference in New Issue
Block a user