refs #5244 move changes sql
gitea/salix/pipeline/head Build queued... Details

This commit is contained in:
Vicent Llopis 2023-08-24 07:40:37 +02:00
parent 59888dfdb8
commit dad792cb76
5 changed files with 4 additions and 3 deletions

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