Commit a057bd36 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'mw-groups-dropdown-props-addon' into 'master'

Add queryParams prop to GroupsDropdownFilter

See merge request gitlab-org/gitlab-ee!15153
parents 43b3af73 8d3cf7b4
...@@ -21,6 +21,11 @@ export default { ...@@ -21,6 +21,11 @@ export default {
required: false, required: false,
default: s__('CycleAnalytics|group dropdown filter'), default: s__('CycleAnalytics|group dropdown filter'),
}, },
queryParams: {
type: Object,
required: false,
default: () => ({}),
},
}, },
data() { data() {
return { return {
...@@ -57,7 +62,8 @@ export default { ...@@ -57,7 +62,8 @@ export default {
}, },
fetchData(term, callback) { fetchData(term, callback) {
this.loading = true; this.loading = true;
return Api.groups(term, {}, groups => {
return Api.groups(term, this.queryParams, groups => {
this.loading = false; this.loading = false;
callback(groups); callback(groups);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment