mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Fix bug in My Cards and Global Search
This commit is contained in:
parent
db311f677b
commit
392b701956
4 changed files with 24 additions and 20 deletions
|
|
@ -45,12 +45,15 @@ import moment from 'moment';
|
|||
export class QueryParams {
|
||||
text = '';
|
||||
|
||||
constructor(params = {}) {
|
||||
constructor(params = {}, text = '') {
|
||||
this.params = params;
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
hasOperator(operator) {
|
||||
return this.params[operator];
|
||||
return (
|
||||
this.params[operator] !== undefined && this.params[operator].length > 0
|
||||
);
|
||||
}
|
||||
|
||||
addPredicate(operator, predicate) {
|
||||
|
|
@ -189,8 +192,8 @@ export class Query {
|
|||
return this._errors.errorMessages();
|
||||
}
|
||||
|
||||
getParams() {
|
||||
return this.queryParams.getParams();
|
||||
getQueryParams() {
|
||||
return this.queryParams;
|
||||
}
|
||||
|
||||
addPredicate(operator, predicate) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue