summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/project_select.js
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-10-26 14:05:34 +0800
committerHeinrich Lee Yu <hleeyu@gmail.com>2018-11-19 23:59:54 +0800
commitfbe91125bed5d8f0ca98833eca3d33f531c79922 (patch)
tree2a688a88904862e71d60b8014348e197d08b4681 /app/assets/javascripts/project_select.js
parent2ec2a906b552d5f4a486130b88a39a4a14e7b28f (diff)
downloadgitlab-ce-fbe91125bed5d8f0ca98833eca3d33f531c79922.tar.gz
Update project selection dropdown API params
Diffstat (limited to 'app/assets/javascripts/project_select.js')
-rw-r--r--app/assets/javascripts/project_select.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/project_select.js b/app/assets/javascripts/project_select.js
index f1fff173619..ce407c60724 100644
--- a/app/assets/javascripts/project_select.js
+++ b/app/assets/javascripts/project_select.js
@@ -14,6 +14,8 @@ export default function projectSelect() {
this.orderBy = $(select).data('orderBy') || 'id';
this.withIssuesEnabled = $(select).data('withIssuesEnabled');
this.withMergeRequestsEnabled = $(select).data('withMergeRequestsEnabled');
+ this.includeShared = $(select).data('includeShared') === undefined ? true : $(select).data('includeShared');
+ this.includeProjectsInSubgroups = $(select).data('includeProjectsInSubgroups') || false;
this.allowClear = $(select).data('allowClear') || false;
placeholder = 'Search for project';
@@ -54,6 +56,8 @@ export default function projectSelect() {
{
with_issues_enabled: _this.withIssuesEnabled,
with_merge_requests_enabled: _this.withMergeRequestsEnabled,
+ include_shared: _this.includeShared,
+ include_subgroups: _this.includeProjectsInSubgroups,
},
projectsCallback,
);