- fix: sistemato pagina gruppo che non si visualizzava (errore per modifica)
- fix: corretto il "Invia RIS" al gruppo.
This commit is contained in:
@@ -4,7 +4,8 @@ import type {
|
||||
IAccount,
|
||||
ICircuit, ICircuitState, IGroupShort, IMyCircuit, IMyGroup, IUserFields
|
||||
} from '@src/model';
|
||||
import { IGlobalState
|
||||
import {
|
||||
IGlobalState
|
||||
} from '@src/model'
|
||||
import { tools } from '@tools'
|
||||
import translate from '@src/globalroutines/util'
|
||||
@@ -252,7 +253,7 @@ export const useCircuitStore = defineStore('CircuitStore', {
|
||||
|
||||
getCircuitsListByGroup(mygrp: IMyGroup): ICircuit[] {
|
||||
if (mygrp.mycircuits)
|
||||
return this.listcircuits.filter((rec: ICircuit) => mygrp.mycircuits!.findIndex((circ: IMyCircuit) => circ.circuitname === rec.name) >= 0)
|
||||
return this.listcircuits.filter((rec: ICircuit) => mygrp.mycircuits!.findIndex((circ: ICircuit) => circ.name === rec.name) >= 0)
|
||||
|
||||
return []
|
||||
},
|
||||
|
||||
@@ -7823,7 +7823,7 @@ export const tools = {
|
||||
|
||||
if (username) {
|
||||
await userStore.loadGroups(username).then((ris) => {
|
||||
// console.log('ris', ris)
|
||||
console.log('loadGroupsByUsername ', ris)
|
||||
if (ris) {
|
||||
userStore.my.profile.mygroups = ris.mygroups ? ris.mygroups : []
|
||||
userStore.my.profile.list_usersgroup = ris.listUsersGroup ? ris.listUsersGroup : []
|
||||
|
||||
@@ -306,10 +306,14 @@ export const useUserStore = defineStore('UserStore', {
|
||||
},
|
||||
|
||||
IsMyGroupByGroupname(groupname: string): boolean {
|
||||
if (this.my.profile.mygroups)
|
||||
return this.my.profile.mygroups.findIndex((rec) => rec.groupname === groupname) >= 0
|
||||
else
|
||||
try {
|
||||
if (this.my.profile?.mygroups)
|
||||
return this.my.profile.mygroups.findIndex((rec) => rec.groupname === groupname) >= 0
|
||||
else
|
||||
return false
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
},
|
||||
|
||||
getMyGroupByGroupname(groupname: string): IMyGroup | null {
|
||||
|
||||
@@ -1724,6 +1724,11 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
})
|
||||
},
|
||||
|
||||
async loadTest(ind: number, numval: number) {
|
||||
const restest = await Api.SendReq(`/testpao/?numval=${numval}&ind=${ind}`, 'GET', null)
|
||||
return restest
|
||||
},
|
||||
|
||||
async loadSite() {
|
||||
const userStore = useUserStore()
|
||||
const calendarStore = useCalendarStore()
|
||||
@@ -1740,10 +1745,6 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
// calendarStore.editable = false
|
||||
|
||||
try {
|
||||
console.log('CHIAMA testpao...')
|
||||
const restest = await Api.SendReq(`/testpao/`, 'GET', null)
|
||||
console.log(' RISULTATO = ', restest)
|
||||
|
||||
const res = await Api.SendReq(`/loadsite/${myuserid}/${tools.getEnv('VITE_APP_ID')}/${import.meta.env.VITE_APP_VERSION}`, 'GET', null)
|
||||
if (res.status === 200) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user