This commit is contained in:
parent
59888dfdb8
commit
dad792cb76
|
@ -16,7 +16,7 @@ export default class WorkerAutocomplete extends Autocomplete {
|
||||||
}
|
}
|
||||||
Object.assign(this, {
|
Object.assign(this, {
|
||||||
label: 'Worker',
|
label: 'Worker',
|
||||||
url: url,
|
url,
|
||||||
searchFunction: function({$search}) {
|
searchFunction: function({$search}) {
|
||||||
return {and: [
|
return {and: [
|
||||||
{'active': {neq: false}},
|
{'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 => {
|
module.exports = Self => {
|
||||||
Self.remoteMethodCtx('search', {
|
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: [{
|
accepts: [{
|
||||||
arg: 'filter',
|
arg: 'filter',
|
||||||
type: 'object',
|
type: 'object',
|
||||||
description: 'Filter defining where and paginated data',
|
description: 'Filter to define conditions and paginate the data.',
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue