-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(UI-1107): invite user to organization #875
base: main
Are you sure you want to change the base?
Conversation
8b2823e
to
e4fe793
Compare
src/components/organisms/settings/organization/organizationMemberCreateModal.tsx
Outdated
Show resolved
Hide resolved
|
e8633a4
to
cc49240
Compare
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.
{t("line1", { memberName: "xxxx" })}
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.
const organizationId = get().currentOrganizationId; | ||
if (!organizationId) { | ||
set((state) => ({ ...state, isLoadingMembers: true })); |
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.
set((state) => ({ ...state, isLoadingMembers: true })); | |
set((state) => ({ ...state, isLoadingMembers: false })); |
@@ -92,11 +109,22 @@ const store: StateCreator<OrganizationStore> = (set, get) => ({ | |||
} | |||
const { data: members, error } = await OrganizationsService.listMembers(organizationId); | |||
|
|||
if (error) { | |||
set((state) => ({ ...state, isLoadingMembers: true })); |
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.
set((state) => ({ ...state, isLoadingMembers: true })); | |
set((state) => ({ ...state, isLoadingMembers: false })); |
|
||
return error; | ||
} | ||
set((state) => ({ ...state, membersList: members, isLoadingMembers: true })); |
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.
set((state) => ({ ...state, membersList: members, isLoadingMembers: true })); | |
set((state) => ({ ...state, membersList: members, isLoadingMembers: false })); |
Description
Add feature of inviting users to organizations.
Linear Ticket
https://linear.app/autokitteh/issue/UI-1107/functionality-invite-user-to-organization
What type of PR is this? (check all applicable)