This commit is contained in:
parent
5e69fc0aa5
commit
6daabed202
|
@ -38,11 +38,6 @@ module.exports = Self => {
|
||||||
type: 'Integer',
|
type: 'Integer',
|
||||||
description: 'Type id',
|
description: 'Type id',
|
||||||
http: {source: 'query'}
|
http: {source: 'query'}
|
||||||
}, {
|
|
||||||
arg: 'hasVisible',
|
|
||||||
type: 'Boolean',
|
|
||||||
description: 'Whether the the item has visible or not',
|
|
||||||
http: {source: 'query'}
|
|
||||||
}, {
|
}, {
|
||||||
arg: 'isActive',
|
arg: 'isActive',
|
||||||
type: 'Boolean',
|
type: 'Boolean',
|
||||||
|
|
|
@ -38,9 +38,6 @@ class Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
onSearch(params) {
|
onSearch(params) {
|
||||||
if (params && params.hasVisible === undefined && params.isActive === undefined)
|
|
||||||
Object.assign(params, {hasVisible: true, isActive: true});
|
|
||||||
|
|
||||||
if (params)
|
if (params)
|
||||||
this.$.model.applyFilter(null, params);
|
this.$.model.applyFilter(null, params);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue