getUrl: function () {
var q = this.options.app.state.get('contextComponentQualifier');
if (q === 'VW' || q === 'SVW') {
- return baseUrl + '/api/components/search';
+ return baseUrl + '/api/components/search_view_components';
} else {
return baseUrl + '/api/resources/search?f=s2&q=TRK&display_uuid=true';
}
},
prepareSearchForViews: function () {
- var componentUuid = this.options.app.state.get('contextComponentUuid');
+ var componentId = this.options.app.state.get('contextComponentUuid');
return this.$('.js-custom-value').select2({
placeholder: 'Search...',
minimumInputLength: 2,
quietMillis: 300,
url: this.getUrl(),
data: function (term, page) {
- return { q: term, componentUuid: componentUuid, p: page, ps: 25 };
+ return { q: term, componentId: componentId, p: page, ps: 25 };
},
results: function (data) {
return {