Commit 94b474a5 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '344179-replace-data-confirm-modals-with-glmodal-in-app-views-projects-artifacts-_artifact-html-haml' into 'master'

Replace `data-confirm` modals with `GlModal` in `app/views/projects/artifacts/_artifact.html.haml`

See merge request gitlab-org/gitlab!81877
parents 2e34382e 94a283f6
...@@ -57,5 +57,5 @@ ...@@ -57,5 +57,5 @@
= sprite_icon('folder-open', css_class: 'gl-icon') = sprite_icon('folder-open', css_class: 'gl-icon')
- if can?(current_user, :destroy_artifacts, @project) - if can?(current_user, :destroy_artifacts, @project)
= link_to project_artifact_path(@project, artifact), data: { placement: 'top', container: 'body', confirm: _('Are you sure you want to delete these artifacts?') }, method: :delete, title: _('Delete artifacts'), ref: 'tooltip', aria: { label: _('Delete artifacts') }, class: 'gl-button btn btn-danger btn-icon has-tooltip' do = link_to project_artifact_path(@project, artifact), data: { placement: 'top', container: 'body', confirm: _('Are you sure you want to delete these artifacts?'), confirm_btn_variant: "danger" }, method: :delete, title: _('Delete artifacts'), ref: 'tooltip', aria: { label: _('Delete artifacts') }, class: 'gl-button btn btn-danger btn-icon has-tooltip' do
= sprite_icon('remove', css_class: 'gl-icon') = sprite_icon('remove', css_class: 'gl-icon')
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