Riso: Ris Italia, altre modifiche grafiche

Lista Utenti da Verificare
This commit is contained in:
Surya Paolo
2023-11-30 01:48:29 +01:00
parent fdf232b351
commit ee5235549e
42 changed files with 863 additions and 197 deletions

View File

@@ -81,6 +81,7 @@ export const DefaultUser: IUserFields = {
last_circuitpath: '',
lastdate_reqRis: tools.getLastDateReadReset(),
manage_mygroups: [],
userstoverify: [],
asked_friends: [],
asked_groups: [],
refused_groups: [],
@@ -155,6 +156,7 @@ export const DefaultProfile: IUserProfile = {
mycircuits: [],
last_circuitpath: '',
manage_mygroups: [],
userstoverify: [],
asked_friends: [],
asked_groups: [],
refused_groups: [],
@@ -315,6 +317,16 @@ export const useUserStore = defineStore('UserStore', {
}
},
getUsersToVerify(): any[] {
try {
const arr: any = this.my.profile.userstoverify
return arr
} catch (e) {
return []
}
},
hoContiComunitariDaAmministrare(): boolean {
try {
const arr: any = this.my.profile.manage_mygroups.filter((group: IMyGroup) => (group.mycircuits!.length > 0))