Skip to content

feat: new membership invitations#852

Open
ThibaudDauce wants to merge 11 commits intomainfrom
new_membership_requests
Open

feat: new membership invitations#852
ThibaudDauce wants to merge 11 commits intomainfrom
new_membership_requests

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's fixed

}
}

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes done!

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.

2 participants