mirror of
https://github.com/wekan/wekan.git
synced 2026-01-28 12:16:10 +01:00
Add more constants and convert params object to a class
This commit is contained in:
parent
849b608933
commit
ba00311dd4
5 changed files with 248 additions and 195 deletions
|
|
@ -1,4 +1,6 @@
|
|||
import { CardSearchPagedComponent } from '../../lib/cardSearch';
|
||||
import {QueryParams} from "../../../config/query-classes";
|
||||
import {OPERATOR_SORT, OPERATOR_USER} from "../../../config/search-const";
|
||||
|
||||
// const subManager = new SubsManager();
|
||||
|
||||
|
|
@ -48,10 +50,9 @@ class MyCardsComponent extends CardSearchPagedComponent {
|
|||
onCreated() {
|
||||
super.onCreated();
|
||||
|
||||
const queryParams = {
|
||||
users: [Meteor.user().username],
|
||||
sort: { name: 'dueAt', order: 'des' },
|
||||
};
|
||||
const queryParams = new QueryParams();
|
||||
queryParams.addPredicate(OPERATOR_USER, Meteor.user().username);
|
||||
queryParams.addPredicate(OPERATOR_SORT, { name: 'dueAt', order: 'des' });
|
||||
|
||||
this.runGlobalSearch(queryParams);
|
||||
Meteor.subscribe('setting');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue