- catalogo

- corretto logica del RefreshToken che non richiedeva il nuovo token, quindi scadeva tutte le volte, richiedendo sempre l'accesso !
This commit is contained in:
Surya Paolo
2025-01-07 17:17:08 +01:00
parent ce86dd51a8
commit 3734762a8b
72 changed files with 2112 additions and 3592650 deletions

View File

@@ -6616,6 +6616,10 @@ export const tools = {
check = check && tools.isBitActive(col.showWhen, costanti.showWhen.InPage)
}
if (col.onlyforAdmin) {
check = check && tools.isAdmin()
}
return check
@@ -6648,14 +6652,23 @@ export const tools = {
setRequestCircuit($q: any, username: string, circuitname: string, value: boolean, groupname?: string) {
const userStore = useUserStore()
const circuitStore = useCircuitStore()
userStore.setCircuitCmd($q, t, username, circuitname, shared_consts.CIRCUITCMD.REQ, value, { groupname })
.then((res: any) => {
if (res) {
if (value) {
const mycircuit = circuitStore.getCircuitByName(circuitname)
let msg = t('circuit.already_entered', { circuitname })
if (mycircuit?.askManagerToEnter) {
msg = t('circuit.askedto', { circuitname })
}
// ADD to req
userStore.my.profile.asked_circuits.push(res.circuit)
tools.showPositiveNotif($q, t('circuit.askedto', { circuitname }))
tools.showPositiveNotif($q, msg)
} else {
// REMOVE to req
userStore.my.profile.asked_circuits = userStore.my.profile.asked_circuits.filter((rec: ICircuit) => rec.name !== circuitname)
@@ -6744,7 +6757,7 @@ export const tools = {
userStore.my.profile.asked_circuits = userStore.my.profile.asked_circuits.filter((rec: ICircuit) => rec.name !== circuitname)
}
this.updateMyData(res)
tools.showPositiveNotif($q, t('circuit.cancel_req'))
tools.showPositiveNotif($q, t('circuit.cancel_req', { circuitname }))
}
})
})
@@ -7384,6 +7397,8 @@ export const tools = {
qta_max_default: 200,
fido_scoperto_default_grp: shared_consts.CIRCUIT_PARAMS.SCOPERTO_MIN_GRP,
qta_max_default_grp: shared_consts.CIRCUIT_PARAMS.SCOPERTO_MAX_GRP,
fido_scoperto_default_contocom: shared_consts.CIRCUIT_PARAMS.SCOPERTO_MIN_CONTO_COMUNITARIO,
qta_max_default_contocom: shared_consts.CIRCUIT_PARAMS.SCOPERTO_MAX_CONTO_COMUNITARIO,
valuta_per_euro: 1,
totTransato: 0,
totCircolante: 0,