- only one GraphQL call to Identities
- LoginView is no more responsible for identities : App.vue is now reactively monitoring identities changes to initializeCurrentActor
- Remove useLazyCurrentUserIdentities we now use useCurrentUserIdentities everywhere
- Change identities to be possibly undefined instead of null to remove a useless trigger to watch in App.vue
Related to #1806
This redirect is triggered when identities changes during the login process and interrupt it. Identity redirect is already checked inside the login process.
Related to #1806
Also ensure that the actor is included in PERSON_STATUS_GROUP, to stay consistent with LOGGED_USER_MEMBERSHIPS as used in MyGroups.vue.
The accept-invitation and refuse-invitation events needed to be emitted before refetching PERSON_STATUS_GROUP, so they can be caught by GroupView.vue before <InvitationsList> is destroyed due to the v-if becoming false.
Fixes#1800
InvitationList.vue now emit accept-invitation and reject-invitation as expected by MyGroups.vue
MyGroups.vue refetch data after receiving the events.
Fixes#1797
The issue was caused by incorrect handling of the `i18n.global.locale` value in the Composition API.
When using `createI18n` with `legacy: false`, `i18n.global.locale` is a reactive ref.
Assigning directly with `i18n.global.locale = lang;` breaks reactivity.
The correct usage is : `i18n.global.locale.value = lang;`.
However, this assignment was unnecessary because the value is already updated automatically when the language changes.
All scripts using `const { locale } = useI18n({ useScope: "global" });` are updated to use `locale.value` instead of just `locale`, to ensure correct reactive behavior.
Fixes: #1597, #1772, and possibly other related issues.
- The first profile is now created after the user email validation
- NavBar is correctly updated when a user is connected but without any profile
- Always fetch identities from the server at login (no cache)
- NoIdentitiesException is thrown again
- Refactor EditIdentity to create the first profile
- Translations updated
- Tests updated
Fixes#1762