- Sistemato INVITI alla App
- Completamento Profilo - Registrazione tramite Invito, senza richiedere conferma email.
This commit is contained in:
@@ -150,6 +150,7 @@ export const tools = {
|
||||
TIPOVIS_SHOW_INPAGE: 8,
|
||||
|
||||
APORTADOR_SOLIDARIO: 'apsol',
|
||||
TOK_INV: 'tokinv',
|
||||
|
||||
IDAPP_AYNI: '7',
|
||||
IDAPP_SIP: '9',
|
||||
@@ -11280,6 +11281,14 @@ export const tools = {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
pageExist(path: string) {
|
||||
const globalStore = useGlobalStore();
|
||||
const page = globalStore.getPage(path)
|
||||
|
||||
return !!page
|
||||
}
|
||||
|
||||
// FINE !
|
||||
|
||||
// getLocale() {
|
||||
|
||||
@@ -1479,7 +1479,9 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return Api.SendReq('/savepage', 'POST', { page })
|
||||
.then((res) => {
|
||||
if (res && res.data && res.data.mypage) {
|
||||
const index = this.mypage.findIndex((rec) => rec.path === res.data.mypage.path);
|
||||
let index = this.mypage.findIndex((rec) => rec._id === res.data.mypage._id);
|
||||
if (index < 0)
|
||||
index = this.mypage.findIndex((rec) => rec.path === res.data.mypage.path);
|
||||
if (index >= 0) {
|
||||
this.mypage[index] = res.data.mypage;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user