-
Notifications
You must be signed in to change notification settings - Fork 4
feat: new membership invitations #852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ThibaudDauce
commented
Jan 1, 2026
- Require feat: add MembershipRequest from org opendatateam/udata#3570
86d0345 to
9f0fe1b
Compare
| const submitNewMember = async (close: () => void) => { | ||
| if (!canSubmitNewMember.value) return | ||
| const submitInvitation = async (close: () => void) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The handling of an already invited user is quite misleading. It show a default error in a toast but I don't think we should send the request at all
|
|
||
| export type OrgInvitation = { | ||
| id: string | ||
| organization: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use OrganizationReference ? Or is it something else ?
| :label="$t('Utilisateur')" | ||
| :placeholder="$t('Rechercher un utilisateur')" | ||
| class="mb-6" | ||
| :hint="$t(`Laissez vide si vous souhaitez inviter par email`)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| :hint="$t(`Laissez vide si vous souhaitez inviter par email`)" | |
| :hintText="$t(`Laissez vide si vous souhaitez inviter par email`)" |
| <InputGroup | ||
| v-model="inviteForm.email" | ||
| :label="$t('Email')" | ||
| :hint="$t(`Inviter une personne par email (même si elle n'a pas encore de compte)`)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| :hint="$t(`Inviter une personne par email (même si elle n'a pas encore de compte)`)" | |
| :hintText="$t(`Inviter une personne par email (même si elle n'a pas encore de compte)`)" |
| <InputGroup | ||
| v-model="inviteForm.comment" | ||
| :label="$t('Message (optionnel)')" | ||
| :hint="$t(`Ce message sera inclus dans l'email d'invitation`)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| :hint="$t(`Ce message sera inclus dans l'email d'invitation`)" | |
| :hintText="$t(`Ce message sera inclus dans l'email d'invitation`)" |
| } | ||
| } | ||
| const canSubmitInvitation = computed(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use useForm instead ? It would allow us to show proper validation errors