Skip to content
Snippets Groups Projects
Commit f7695d47 authored by Arinde Eniola's avatar Arinde Eniola
Browse files

fix bug causing links in right sidebar labels dropdown to not route to another page

parent 23c155f0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -241,6 +241,9 @@ class GitLabDropdown
shouldPropagate: (e) =>
if @options.multiSelect
$target = $(e.target)
return if $target.is('a') and $target.attr('href') isnt '#'
if not $target.hasClass('dropdown-menu-close') and not $target.hasClass('dropdown-menu-close-icon')
e.stopPropagation()
return false
Loading
Loading
Loading
Loading
@@ -110,8 +110,7 @@
%ul.dropdown-footer-list
- if can? current_user, :admin_label, @project
%li
%a.dropdown-toggle-page{href: "#"}
Create new
= link_to 'Create new', new_namespace_project_label_path(@project.namespace, @project)
%li
= link_to namespace_project_labels_path(@project.namespace, @project) do
- if can? current_user, :admin_label, @project
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment