Commit bcccfd6d authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch...

Merge branch '344188-replace-data-confirm-modals-with-glmodal-in-app-views-shared-members-_access_request_links' into 'master'

Replace "data-confirm" modal with GlModal in _access_request_links.html.haml partial

See merge request gitlab-org/gitlab!80141
parents 3ae908d3 b1ffd91f
......@@ -4,7 +4,8 @@
- link_text = source.is_a?(Group) ? _('Leave group') : _('Leave project')
= link_to link_text, polymorphic_path([:leave, source, :members]),
method: :delete,
data: { confirm: leave_confirmation_message(source), qa_selector: 'leave_group_link' },
aria: { label: link_text },
data: { confirm: leave_confirmation_message(source), confirm_btn_variant: 'danger', qa_selector: 'leave_group_link' },
class: 'js-leave-link'
- elsif requester = source.requesters.find_by(user_id: current_user.id) # rubocop: disable CodeReuse/ActiveRecord
= link_to _('Withdraw Access Request'), polymorphic_path([:leave, source, :members]),
......
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