Skip to content

Conversation

@ThibaudDauce
Copy link
Contributor

@ThibaudDauce ThibaudDauce force-pushed the new_membership_requests branch from 86d0345 to 9f0fe1b Compare January 1, 2026 15:21
@ThibaudDauce ThibaudDauce marked this pull request as ready for review January 1, 2026 16:10
const submitNewMember = async (close: () => void) => {
if (!canSubmitNewMember.value) return
const submitInvitation = async (close: () => void) => {
Copy link
Contributor

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: {
Copy link
Contributor

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`)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
: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)`)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
: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`)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
: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(() => {
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants