- comune residenza anche sulla email
- comune non obbligatorio... Skippa
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user