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 @@ >