go on Conto Comunitario
This commit is contained in:
@@ -248,7 +248,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return this.my.profile.manage_mygroups
|
||||
},
|
||||
|
||||
hoContiComunitariDaAmministrare(): boolean {
|
||||
hoContiCollettiviDaAmministrare(): boolean {
|
||||
const arr = this.my.profile.manage_mygroups.find((group: IMyGroup) => group.account)
|
||||
return arr ? true : false
|
||||
},
|
||||
@@ -386,6 +386,13 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return tools.getCommon([...this.my.profile.mycircuits], [...user.profile.mycircuits], 'circuitname')
|
||||
},
|
||||
|
||||
getMyCircuits(): any[] {
|
||||
|
||||
if (!this.my.profile.mycircuits)
|
||||
return []
|
||||
return this.my.profile.mycircuits.map(item => item.circuitname)
|
||||
},
|
||||
|
||||
getMyCircuitsInCommonByGroup(group: IMyGroup): any[] {
|
||||
|
||||
if (!this.my.profile.mycircuits || (!group || !group.mycircuits))
|
||||
|
||||
Reference in New Issue
Block a user