This commit is contained in:
parent
59888dfdb8
commit
dad792cb76
|
@ -16,7 +16,7 @@ export default class WorkerAutocomplete extends Autocomplete {
|
|||
}
|
||||
Object.assign(this, {
|
||||
label: 'Worker',
|
||||
url: url,
|
||||
url,
|
||||
searchFunction: function({$search}) {
|
||||
return {and: [
|
||||
{'active': {neq: false}},
|
||||
|
|
|
@ -83,3 +83,4 @@ export default class EventEmitter {
|
|||
}
|
||||
}
|
||||
}
|
||||
EventEmitter.$inject = ['$element', '$scope'];
|
||||
|
|
|
@ -3,11 +3,11 @@ const mergeFilters = require('vn-loopback/util/filter').mergeFilters;
|
|||
|
||||
module.exports = Self => {
|
||||
Self.remoteMethodCtx('search', {
|
||||
description: 'Returns an array of search from an specified worker',
|
||||
description: 'Returns an array of search results for a specified worker',
|
||||
accepts: [{
|
||||
arg: 'filter',
|
||||
type: 'object',
|
||||
description: 'Filter defining where and paginated data',
|
||||
description: 'Filter to define conditions and paginate the data.',
|
||||
required: true
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue