- Corretto campo "Comune di Residenza".
- Aggiornato Completamento Profilo: Comune di Residenza. - Registrazione
This commit is contained in:
@@ -121,6 +121,8 @@ export const DefaultUser: IUserFields = {
|
||||
manage_mycircuits: [],
|
||||
useraccounts: [],
|
||||
calc: { numGoodsAndServices: 0 },
|
||||
resid_str_comune: '',
|
||||
resid_comune: '',
|
||||
resid_province: '',
|
||||
resid_card: '',
|
||||
total_transactions: 0,
|
||||
@@ -196,6 +198,8 @@ export const DefaultProfile: IUserProfile = {
|
||||
manage_mycircuits: [],
|
||||
useraccounts: [],
|
||||
calc: { numGoodsAndServices: 0 },
|
||||
resid_str_comune: '',
|
||||
resid_comune: '',
|
||||
resid_province: '',
|
||||
resid_card: '',
|
||||
total_transactions: 0,
|
||||
@@ -933,6 +937,18 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return mystr;
|
||||
},
|
||||
|
||||
getComuneByUser(user: IUserFields, html: boolean = false) {
|
||||
let mystr = '';
|
||||
if (user && user.profile && user.profile.resid_str_comune)
|
||||
mystr = `(${user.profile.resid_str_comune})`;
|
||||
|
||||
if (html) {
|
||||
mystr = `<span style='text-align: right'>${mystr}</span>`;
|
||||
}
|
||||
|
||||
return mystr;
|
||||
},
|
||||
|
||||
getUserNameOnlyIfToShow(user: any, col: any = null, options: any = {}): string {
|
||||
let myrec = this.getRecByCol(user, col);
|
||||
|
||||
@@ -994,7 +1010,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
this.isLogged = false;
|
||||
this.x_auth_token = '';
|
||||
this.refreshToken = '';
|
||||
this.browser_random = '';
|
||||
// this.browser_random = '';
|
||||
console.log('SBIANCA VUOTO ------------ x_auth_token');
|
||||
|
||||
return true;
|
||||
@@ -1777,6 +1793,8 @@ export const useUserStore = defineStore('UserStore', {
|
||||
|
||||
tools.checkApp();
|
||||
|
||||
this.clearAuthData()
|
||||
|
||||
return await Api.SendReq('/users/me/token', 'DELETE', null)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
|
||||
Reference in New Issue
Block a user