Commit 186caf33 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch 'dz/344163-set-danger-cofirmation-button-on-admin-users' into 'master'

Set danger variant to remove user/project

See merge request gitlab-org/gitlab!79332
parents 6ad30931 76382d6c
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
.float-right .float-right
%span.light.vertical-align-middle= group_member.human_access %span.light.vertical-align-middle= group_member.human_access
- unless group_member.owner? - unless group_member.owner?
= link_to group_group_member_path(group, group_member), data: { confirm: remove_member_message(group_member), testid: 'remove-user' }, method: :delete, remote: true, class: "btn btn-sm btn-danger gl-button btn-icon gl-ml-3", title: _('Remove user from group') do = link_to group_group_member_path(group, group_member), data: { confirm: remove_member_message(group_member), confirm_btn_variant: 'danger', testid: 'remove-user' }, aria: { label: _('Remove') }, method: :delete, remote: true, class: "btn btn-sm btn-danger gl-button btn-icon gl-ml-3", title: _('Remove user from group') do
= sprite_icon('remove', size: 16, css_class: 'gl-icon') = sprite_icon('remove', size: 16, css_class: 'gl-icon')
.row .row
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
%span.light.vertical-align-middle= member.human_access %span.light.vertical-align-middle= member.human_access
- if member.respond_to? :project - if member.respond_to? :project
= link_to project_project_member_path(project, member), data: { confirm: remove_member_message(member) }, remote: true, method: :delete, class: "btn btn-sm btn-danger gl-button btn-icon gl-ml-3", title: _('Remove user from project') do = link_to project_project_member_path(project, member), data: { confirm: remove_member_message(member), confirm_btn_variant: 'danger' }, aria: { label: _('Remove') }, remote: true, method: :delete, class: "btn btn-sm btn-danger gl-button btn-icon gl-ml-3", title: _('Remove user from project') do
= sprite_icon('remove', size: 16, css_class: 'gl-icon') = sprite_icon('remove', size: 16, css_class: 'gl-icon')
= render partial: 'admin/users/modals' = render partial: 'admin/users/modals'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment