Commit 8d3cf7b4 authored by Martin Wortschack's avatar Martin Wortschack Committed by Kushal Pandya

Add queryParams prop

- By this we can pass additional params to the groups API call
parent 43b3af73
......@@ -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