Set danger variant to remove user/project
What does this MR do and why?
Update remove confirmation when admin is removing users from groups/projects to danger
variant and change the labels on remove buttons.
Related to #344163 (closed)
Screenshots or screen recordings
Without FF | With FF |
---|---|
Remove from a project | |
Remove from a group |
How to set up and validate locally
- Enable the
bootstrap_confirmation_modals
feature flag:Feature.enable(:bootstrap_confirmation_modals)
- Login as admin
- Go to http://localhost:3000/admin/users
- Choose a user that belongs to a group and to a project
- Navigate to
Groups and projects
tab - Click a bin icon next to a group -> observe a confirmation modal
- Click a bin icon next to a project -> observe a confirmation modal
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.