Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add warning dialog when removing member from organization #14695

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

Merged
merged 5 commits into from
Sep 27, 2024

Conversation

jaaydenh
Copy link
Contributor

@jaaydenh jaaydenh commented Sep 16, 2024

resolves #14705

Screenshot 2024-09-27 at 4 34 02 PM

@jaaydenh jaaydenh self-assigned this Sep 16, 2024
@github-actions github-actions bot added the stale This issue is like stale bread. label Sep 24, 2024
@github-actions github-actions bot closed this Sep 27, 2024
@jaaydenh jaaydenh reopened this Sep 27, 2024
@jaaydenh jaaydenh force-pushed the jaaydenh/org-removal-warning branch from bc28599 to cb6d1a6 Compare September 27, 2024 19:52
@jaaydenh jaaydenh marked this pull request as ready for review September 27, 2024 20:34
@jaaydenh jaaydenh removed the stale This issue is like stale bread. label Sep 27, 2024
@jaaydenh jaaydenh requested a review from aslilac September 27, 2024 20:36

<p css={styles.test}>
Are you sure you want to remove{" "}
<strong>{memberToDelete?.username}</strong>?
Copy link
Member

Choose a reason for hiding this comment

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

any way we could fiddle the types so that memberToDelete isn't optional here? seeing "Are you sure you want to remove ?" would be weird

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 feels difficult to remove the undefined from memberToDelete without restructuring the pattern that ConfirmDialog uses. For now, maybe its safer to just not display the username here.

@jaaydenh jaaydenh merged commit e6cd300 into main Sep 27, 2024
30 checks passed
@jaaydenh jaaydenh deleted the jaaydenh/org-removal-warning branch September 27, 2024 21:20
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display warning dialog when removing a user from an organization
2 participants