- comune residenza anche sulla email

- comune non obbligatorio... Skippa
This commit is contained in:
Surya Paolo
2025-11-27 03:14:56 +01:00
parent 2dca358cd3
commit 281be361ba
7 changed files with 117 additions and 19 deletions

View File

@@ -112,6 +112,7 @@ export const DefaultUser: IUserFields = {
stepTutorial: 0,
noNameSurname: false,
noCircuit: false,
noComune: false,
noCircIta: false,
insert_circuito_ita: false,
noFoto: false,
@@ -189,6 +190,7 @@ export const DefaultProfile: IUserProfile = {
stepTutorial: 0,
noNameSurname: false,
noCircuit: false,
noComune: false,
noCircIta: false,
insert_circuito_ita: false,
noFoto: false,
@@ -1281,6 +1283,21 @@ export const useUserStore = defineStore('UserStore', {
}
return await this.execDbOpUser({ mydata });
},
async savenoComune(val: boolean, userId?: string) {
const mydata = {
_id: userId ? userId : this.my._id,
dbop: 'noComune',
value: val,
};
if (userId) {
} else {
if (this.my.profile.noComune !== val) {
this.my.profile.noComune = val;
}
}
return await this.execDbOpUser({ mydata });
},
async setPwdComeQuellaDellAdmin(val: boolean, userId?: string) {
const mydata = {
_id: userId,