Fix group/project filters on search page
This commit is contained in:
parent
0ff88ac562
commit
6c1190623f
2 changed files with 7 additions and 1 deletions
|
@ -892,7 +892,7 @@ DEPENDENCIES
|
|||
gemojione (~> 3.0)
|
||||
github-linguist (~> 4.7.0)
|
||||
gitlab-flowdock-git-hook (~> 1.0.1)
|
||||
gitlab-markup (~> 1.5.1)
|
||||
gitlab-markup (~> 1.5.0)
|
||||
gitlab-turbolinks-classic (~> 2.5, >= 2.5.6)
|
||||
gitlab_omniauth-ldap (~> 1.2.1)
|
||||
gollum-lib (~> 4.2)
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
selectable: true,
|
||||
filterable: true,
|
||||
fieldName: 'group_id',
|
||||
search: {
|
||||
fields: ['name']
|
||||
},
|
||||
data: function(term, callback) {
|
||||
return Api.groups(term, {}, function(data) {
|
||||
data.unshift({
|
||||
|
@ -40,6 +43,9 @@
|
|||
selectable: true,
|
||||
filterable: true,
|
||||
fieldName: 'project_id',
|
||||
search: {
|
||||
fields: ['name']
|
||||
},
|
||||
data: function(term, callback) {
|
||||
return Api.projects(term, 'id', function(data) {
|
||||
data.unshift({
|
||||
|
|
Loading…
Reference in a new issue