- Provincia obbligatoria, chiedo conferma se non vuole entrare nel circuito.
This commit is contained in:
@@ -83,6 +83,7 @@ export const DefaultUser: IUserFields = {
|
||||
notif_sector_goods: [],
|
||||
stepTutorial: 0,
|
||||
noNameSurname: false,
|
||||
noCircuit: false,
|
||||
noFoto: false,
|
||||
asked_circuits: [],
|
||||
refused_circuits: [],
|
||||
@@ -147,6 +148,7 @@ export const DefaultProfile: IUserProfile = {
|
||||
notif_sector_goods: [],
|
||||
stepTutorial: 0,
|
||||
noNameSurname: false,
|
||||
noCircuit: false,
|
||||
noFoto: false,
|
||||
asked_circuits: [],
|
||||
refused_circuits: [],
|
||||
@@ -878,6 +880,17 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return await this.execDbOpUser({mydata})
|
||||
}
|
||||
},
|
||||
async savenoCircuit(val: boolean) {
|
||||
const mydata = {
|
||||
_id: this.my._id,
|
||||
dbop: 'noCircuit',
|
||||
value: val,
|
||||
}
|
||||
if (this.my.profile.noCircuit !== val) {
|
||||
this.my.profile.noCircuit = val
|
||||
return await this.execDbOpUser({mydata})
|
||||
}
|
||||
},
|
||||
async savenoFoto(val: boolean) {
|
||||
const mydata = {
|
||||
_id: this.my._id,
|
||||
|
||||
Reference in New Issue
Block a user