From 018cf0bd9932ced359440e8a8340407abe93e76c Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Tue, 3 Oct 2023 23:17:02 +0200 Subject: [PATCH] - se iOS non ricarica la pagina ma disinstalla il SW precedente e chiede di riavviare - fixed: Creando un Conto di Gruppo, pare che venga impostato anche l'username... invece dev'essere solo il groupname - --- src/components/CMyActivities/CMyActivities.ts | 4 ++-- .../CMyActivities/CMyActivities.vue | 21 ++++++++-------- src/components/CMyElem/CMyElem.vue | 17 +++++++++---- src/components/CSignIn/CSignIn.ts | 18 ++++++++++++++ src/components/CSignIn/CSignIn.vue | 4 +++- src/components/CSkill/CSkill.vue | 1 - src/components/MyHeader/MyHeader.ts | 24 ++++++++++++------- src/db/static_data.ts | 2 +- src/statics/lang/it.js | 2 +- src/store/Modules/costanti.ts | 1 + src/views/admin/dbop/dbop.vue | 8 +++++++ 11 files changed, 72 insertions(+), 30 deletions(-) diff --git a/src/components/CMyActivities/CMyActivities.ts b/src/components/CMyActivities/CMyActivities.ts index 7fa7ec62..479797a2 100755 --- a/src/components/CMyActivities/CMyActivities.ts +++ b/src/components/CMyActivities/CMyActivities.ts @@ -186,7 +186,7 @@ export default defineComponent({ if (myuser.value && myuser.value.profile.reaction) { let arrfav = myuser.value.profile.reaction.filter((rec: IReaction) => rec.tab === tab && (rec.fav! === true)) if (arrfav) - return myuser.value.profile.reaction ? [{ _id: { $in: arrfav.map((rec: any) => rec.id) } }] : [] + return myuser.value.profile.reaction ? [{ _id: { $in: arrfav.map((rec: any) => rec.idrec) } }] : [] } return [] } @@ -195,7 +195,7 @@ export default defineComponent({ if (myuser.value && myuser.value.profile.reaction) { let arrfav = myuser.value.profile.reaction.filter((rec: IReaction) => rec.tab === tab && rec.book === true); if (arrfav) - return myuser.value.profile.reaction ? [{ _id: { $in: arrfav.map((rec: any) => rec.id) } }] : [] + return myuser.value.profile.reaction ? [{ _id: { $in: arrfav.map((rec: any) => rec.idrec) } }] : [] } return [] } diff --git a/src/components/CMyActivities/CMyActivities.vue b/src/components/CMyActivities/CMyActivities.vue index 3ff3ad9d..b2914847 100755 --- a/src/components/CMyActivities/CMyActivities.vue +++ b/src/components/CMyActivities/CMyActivities.vue @@ -91,15 +91,15 @@ myclass="myshad" :canopen="true" > - + - - + + - +
-
- +
- Aggiornamento APP in corso ... Se dopo 1 minuto non dovesse - scomparire questo messaggio, chiudere e riaprire la pagina. +
+ Chiudere e Riaprire la App, per completare l'Aggiornamento + +
+
+ Aggiornamento APP in corso ... Se dopo 1 minuto non dovesse + scomparire questo messaggio, chiudere e riaprire la pagina. +
+
diff --git a/src/components/CSignIn/CSignIn.ts b/src/components/CSignIn/CSignIn.ts index 71632dbb..9066e531 100755 --- a/src/components/CSignIn/CSignIn.ts +++ b/src/components/CSignIn/CSignIn.ts @@ -38,6 +38,8 @@ export default defineComponent({ const refPassword = ref(null) const loading = ref(false) + const autoCompleteTriggered = ref(true) + const wasblank = ref(false) const site = computed(() => { return globalStore.site @@ -158,6 +160,20 @@ export default defineComponent({ typePassword.value = typePassword.value === 'password' ? 'text' : 'password' } + function checkAutoCompletion() { + + // Check if the password field value changes without user input + if (signin.value.password.length <= 2) { + wasblank.value = true + autoCompleteTriggered.value = false; + } + + if (signin.value.password.length > 0 && !autoCompleteTriggered.value && !wasblank.value) { + // Auto-completion was executed + console.log('Auto-completion executed.'); + autoCompleteTriggered.value = true; + } + } created() return { @@ -172,6 +188,8 @@ export default defineComponent({ showPassword, typePassword, enablePwa, + checkAutoCompletion, + autoCompleteTriggered, } }, }) diff --git a/src/components/CSignIn/CSignIn.vue b/src/components/CSignIn/CSignIn.vue index a08843e0..4232473e 100755 --- a/src/components/CSignIn/CSignIn.vue +++ b/src/components/CSignIn/CSignIn.vue @@ -36,7 +36,8 @@ rounded outlined dense - lazy-rules + debounce="500" + @update:model-value="checkAutoCompletion" v-on:keyup.enter="onSubmit()" :label="$t('reg.password')" :rules="[ @@ -48,6 +49,7 @@ >