Skip to content
Snippets Groups Projects
Commit f9750b49 authored by Phil Hughes's avatar Phil Hughes Committed by Jacob Schatz
Browse files

Changed how the data is returned - we only care about the branch/tag name

parent ba2089e0
No related branches found
No related tags found
1 merge request!7239Improved ref switcher dropdown performance
Loading
Loading
@@ -94,8 +94,8 @@
link.className = 'is-active';
}
 
link.textContent = ref.name;
link.dataset.ref = ref.name;
link.textContent = ref;
link.dataset.ref = ref;
 
li.appendChild(link);
}
Loading
Loading
Loading
Loading
@@ -267,14 +267,15 @@ class ProjectsController < Projects::ApplicationController
end
 
def refs
branches = BranchesFinder.new(@repository, params).execute
branches = BranchesFinder.new(@repository, params).execute.map(&:name)
 
options = {
'Branches' => branches.take(100),
}
 
unless @repository.tag_count.zero?
tags = TagsFinder.new(@repository, params).execute
tags = TagsFinder.new(@repository, params).execute.map(&:name)
options['Tags'] = tags.take(100)
end
 
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