Se la window viene attivata, e se sono in fase di registrazione, allora controllo se ci sono aggiornamenti ogni 10 secondi, loadSite
Corretto che il link di registrazione se era in minuscolo l'username e venivi registrato in maiuscolo, non lo prendeva. L'immagine di telegram occorre salvare anche la versione SMALL Corretto filtro, se cambiavo Regione, non mi resettava la Provincia e la Città
This commit is contained in:
@@ -2661,7 +2661,7 @@ export const fieldsTable = {
|
||||
value: 'provinces',
|
||||
label: 'Provincia',
|
||||
columns: colProvinces,
|
||||
colkey: '_id',
|
||||
colkey: 'prov',
|
||||
collabel: 'descr',
|
||||
remote: true,
|
||||
},
|
||||
|
||||
@@ -4141,7 +4141,7 @@ export const tools = {
|
||||
return userStore.my.username
|
||||
else
|
||||
return false
|
||||
}catch (e) {
|
||||
} catch (e) {
|
||||
return ''
|
||||
}
|
||||
},
|
||||
@@ -5033,6 +5033,10 @@ export const tools = {
|
||||
return userStore.isUsernameTelegOk()
|
||||
},
|
||||
|
||||
notFinishReg() {
|
||||
return !this.isUserOk()
|
||||
},
|
||||
|
||||
getParamsByTable(table: string) {
|
||||
|
||||
let obj = {
|
||||
@@ -5277,15 +5281,15 @@ export const tools = {
|
||||
const mycolchiaro = tools.colourNameToHex(newcol)
|
||||
|
||||
return 'background: ' + mycol +
|
||||
' background: -webkit-linear-gradient('+degree+'deg, ' + mycol + ', ' + mycolchiaro + ') !important; ' +
|
||||
' background: linear-gradient('+degree+'deg, ' + mycol + ', ' + mycolchiaro + ') !important;'
|
||||
' background: -webkit-linear-gradient(' + degree + 'deg, ' + mycol + ', ' + mycolchiaro + ') !important; ' +
|
||||
' background: linear-gradient(' + degree + 'deg, ' + mycol + ', ' + mycolchiaro + ') !important;'
|
||||
},
|
||||
|
||||
getCurrentUrl(){
|
||||
getCurrentUrl() {
|
||||
return window.location.pathname
|
||||
},
|
||||
|
||||
isCurrentUrlSignUp(){
|
||||
isCurrentUrlSignUp() {
|
||||
return window.location.pathname.indexOf('signup') >= 0
|
||||
},
|
||||
|
||||
|
||||
@@ -62,6 +62,9 @@ export const toolsext = {
|
||||
TABMYGROUPS: 'mygroups',
|
||||
TABSKILLS: 'skills',
|
||||
TABSECTORS: 'sectors',
|
||||
TABREGIONS: 'regions',
|
||||
TABCITIES: 'cities',
|
||||
TABPROVINCE: 'provinces',
|
||||
TABMYSKILLS: 'myskills',
|
||||
TABMYGOODS: 'mygoods',
|
||||
TABMYBACHECAS: 'mybachecas',
|
||||
|
||||
@@ -263,7 +263,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
},
|
||||
|
||||
isUserOk(): boolean {
|
||||
return this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador!
|
||||
return this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador! && this.isUsernameTelegOk()
|
||||
// return this.my.verified_email! && this.my.profile.teleg_id! > 0 && this.my.verified_by_aportador!
|
||||
},
|
||||
|
||||
@@ -838,7 +838,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
// console.log('setGlobal: END')
|
||||
},
|
||||
|
||||
async autologin_FromLocalStorage($router: Router) {
|
||||
async autologin_FromLocalStorage($router: Router, $q: any) {
|
||||
try {
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
@@ -903,6 +903,27 @@ export const useUserStore = defineStore('UserStore', {
|
||||
}
|
||||
|
||||
return await this.setGlobal($router, isLogged)
|
||||
.then((loadstorage: any) => {
|
||||
if (loadstorage) {
|
||||
|
||||
if ($q.screen.gt.sm) {
|
||||
globalStore.setleftDrawerOpen(true)
|
||||
}
|
||||
|
||||
/*if (toolsext.getLocale() !== '') {
|
||||
// console.log('SETLOCALE :', this.$i18n.locale)
|
||||
$i18n.locale = toolsext.getLocale() // Set Lang
|
||||
} else {
|
||||
userStore.setlang($router, this.$i18n.locale)
|
||||
}*/
|
||||
|
||||
|
||||
//++Todo PWA: globalroutines('loadapp', '')
|
||||
|
||||
// Create Subscription to Push Notification
|
||||
globalStore.createPushSubscription()
|
||||
}
|
||||
})
|
||||
|
||||
// console.log('autologin _id STATE ', this._id)
|
||||
|
||||
|
||||
@@ -537,7 +537,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
}
|
||||
},
|
||||
|
||||
createPushSubscription() {
|
||||
async createPushSubscription() {
|
||||
|
||||
// If Already subscribed, don't send to the Server DB
|
||||
// if (state.wasAlreadySubOnDb) {
|
||||
|
||||
Reference in New Issue
Block a user