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 {
required: false,
default: s__('CycleAnalytics|group dropdown filter'),
},
queryParams: {
type: Object,
required: false,
default: () => ({}),
},
},
data() {
return {
......@@ -57,7 +62,8 @@ export default {
},
fetchData(term, callback) {
this.loading = true;
return Api.groups(term, {}, groups => {
return Api.groups(term, this.queryParams, groups => {
this.loading = false;
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