Commit ccf74e91 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '344206-replace-data-confirm-modals-with-glmodal-in-app-views-shared-doorkeeper-applications' into 'master'

Replace `data-confirm` modals with `GlModal` in `app/views/shared/doorkeeper/applications/_delete_form.html.haml`

See merge request gitlab-org/gitlab!81854
parents 4805f84e 45ced1f5
......@@ -2,9 +2,9 @@
= form_tag path do
%input{ :name => "_method", :type => "hidden", :value => "delete" }
- if defined? small
= button_tag type: "submit", class: "gl-button btn btn-danger btn-icon", data: { confirm: _("Are you sure?") } do
= button_tag type: "submit", class: "gl-button btn btn-danger btn-icon", data: { confirm: _("Are you sure?"), confirm_btn_variant: "danger" } do
%span.sr-only
= _('Destroy')
= sprite_icon('remove')
- else
= submit_tag _('Destroy'), data: { confirm: _("Are you sure?") }, class: submit_btn_css
= submit_tag _('Destroy'), data: { confirm: _("Are you sure?"), confirm_btn_variant: "danger" }, aria: { label: _('Destroy') }, class: submit_btn_css
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