summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-05-29 12:11:14 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-05-29 12:11:14 +0100
commitcd0be3ba456f5cf61ed72f1c6b36bef799d7eaaf (patch)
tree428026e32dbb25d4659523d5ba7307068d514b9b /app
parent3b3645136bd524a5e9f79558ab16be976cfe5282 (diff)
downloadgitlab-ce-cd0be3ba456f5cf61ed72f1c6b36bef799d7eaaf.tar.gz
Fix user_removes_labels_spec
Diffstat (limited to 'app')
-rw-r--r--app/views/shared/_label.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml
index c9ff5defdc7..391021a7665 100644
--- a/app/views/shared/_label.html.haml
+++ b/app/views/shared/_label.html.haml
@@ -43,7 +43,8 @@
toggle: 'modal' } }
= _('Promote to group label')
%li
- = link_to _('Delete'), destroy_label_path(label), title: 'Delete', method: :delete, data: { confirm: _('Remove this label? Are you sure?') }, class: 'text-danger'
+ %span{ data: { toggle: 'modal', target: "#modal-delete-label-#{label.id}" } }
+ = button_tag 'Delete', type: 'button', class: 'text-danger remove-row'
- if current_user
%li.inline.label-subscription
- if can_subscribe_to_label_in_different_levels?(label)