Skip to content

Commit

Permalink
fix: Adds permission groups to invite (#5173)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoapolo authored Mar 5, 2025
1 parent 647712c commit 1e10632
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 212 deletions.
1 change: 1 addition & 0 deletions frontend/common/stores/organisation-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ const controller = {
API.trackEvent(Constants.events.INVITE)
return {
email: invite.emailAddress,
permission_groups: invite.groups,
role: invite.role.value,
}
}),
Expand Down
4 changes: 2 additions & 2 deletions frontend/web/components/GroupSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type GroupSelectType = {
value: number[] | undefined
isOpen: boolean
size: string
onAdd: (id: number, isUser: boolean) => void
onAdd: (id: number, isUser: boolean, name?: string) => void
onRemove: (id: number, isUser: boolean) => void
onToggle: () => void
}
Expand Down Expand Up @@ -58,7 +58,7 @@ const GroupSelect: FC<GroupSelectType> = ({
if (isRemove && onRemove) {
onRemove(v.id, false)
} else if (!isRemove && onAdd) {
onAdd(v.id, false)
onAdd(v.id, false, v.name)
}
}}
className='assignees-list-item clickable'
Expand Down
210 changes: 0 additions & 210 deletions frontend/web/components/modals/InviteUsers.js

This file was deleted.

Loading

0 comments on commit 1e10632

Please sign in to comment.