5244-component_workerAutocomplete #1679

Merged
vicent merged 33 commits from 5244-component_workerAutocomplete into dev 2023-08-25 08:56:46 +00:00
5 changed files with 4 additions and 3 deletions
Showing only changes of commit dad792cb76 - Show all commits

View File

@ -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}},

View File

@ -83,3 +83,4 @@ export default class EventEmitter {
} }
} }
} }
EventEmitter.$inject = ['$element', '$scope'];

View File

@ -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
}, },
{ {