- 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:
@@ -115,6 +115,13 @@ export default defineComponent({
|
||||
}
|
||||
})
|
||||
|
||||
function getParamCircuitsToView() {
|
||||
return {
|
||||
'circuit.name': 1,
|
||||
'circuit._id': 1,
|
||||
}
|
||||
}
|
||||
|
||||
function loadAccount() {
|
||||
// console.log('loadAccount')
|
||||
account.value = circuit.value ? userStore.getAccountByCircuitId(circuit.value._id) : null
|
||||
@@ -148,6 +155,10 @@ export default defineComponent({
|
||||
notifStore.setAsRead(idnotif.value)
|
||||
users_in_circuit.value = data.users_in_circuit
|
||||
circuit.value = data.circuit
|
||||
|
||||
if (circuit.value!.circuitoIndipendente) {
|
||||
showrules.value = true
|
||||
}
|
||||
} else {
|
||||
circuit.value = null
|
||||
users_in_circuit.value = []
|
||||
@@ -204,7 +215,9 @@ export default defineComponent({
|
||||
name: 1,
|
||||
surname: 1,
|
||||
date_reg: 1,
|
||||
profile: 1, idapp: 1, 'circuit.name': 1, 'circuit._id': 1
|
||||
profile: 1,
|
||||
idapp: 1,
|
||||
...getParamCircuitsToView(),
|
||||
}
|
||||
|
||||
},
|
||||
@@ -279,7 +292,7 @@ export default defineComponent({
|
||||
verified_by_aportador: 1,
|
||||
admins: 1,
|
||||
idapp: 1,
|
||||
'circuit.name': 1, 'circuit._id': 1
|
||||
...getParamCircuitsToView(),
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user