Skip to content

Commit

Permalink
Make modal target name consistent in Repository Page
Browse files Browse the repository at this point in the history
Added 'modal' in data-target in delete DoD source link.

Co-authored-by: Ana María Martínez Gómez <ammartinez@suse.de>
  • Loading branch information
DavidKang and Ana06 committed Dec 10, 2018
1 parent 92bc209 commit d4851ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.modal.fade{ id: "delete-dod-source-#{download_on_demand.id}", tabindex: -1, role: 'dialog',
.modal.fade{ id: "delete-dod-source-modal-#{download_on_demand.id}", tabindex: -1, role: 'dialog',
aria: { labelledby: 'delete-repository-label', hidden: true } }
.modal-dialog.modal-dialog-centered{ role: 'document' }
.modal-content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
- if User.current.can_modify?(project)
= link_to('#', title: 'Edit DoD Source', data: { toggle: 'modal', target: "#edit-dod-source-modal-#{dod_element.id}" }) do
%i.fas.fa-edit.text-secondary
= link_to('#', title: 'Delete Downdload on Demand source',
data: { toggle: 'modal', target: "#delete-dod-source-#{dod_element.id}" }) do
= link_to('#', title: 'Delete Download on Demand Source',
data: { toggle: 'modal', target: "#delete-dod-source-modal-#{dod_element.id}" }) do
%i.fas.fa-times-circle.text-danger
= render partial: 'edit_dod_source_modal', locals: { repository: repository, project: project, download_on_demand: dod_element }
= render partial: 'delete_dod_source_modal', locals: { repository: repository, project: project, download_on_demand: dod_element }
Expand Down

0 comments on commit d4851ca

Please sign in to comment.