mirror of
https://github.com/wekan/wekan.git
synced 2026-02-03 15:11:48 +01:00
Fix sort operator
* Add server publications for next and previous page * Add ability to sort ascending or descending
This commit is contained in:
parent
250e79f53c
commit
43f40c4085
5 changed files with 239 additions and 174 deletions
|
|
@ -117,7 +117,7 @@ CardComments.textSearch = (userId, textArray) => {
|
|||
};
|
||||
|
||||
for (const text of textArray) {
|
||||
selector.$and.push({ text: new RegExp(escapeForRegex(text)) });
|
||||
selector.$and.push({ text: new RegExp(escapeForRegex(text), 'i') });
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
|
|
|
|||
|
|
@ -62,6 +62,12 @@ SessionData.attachSchema(
|
|||
optional: true,
|
||||
blackbox: true,
|
||||
},
|
||||
projection: {
|
||||
type: String,
|
||||
optional: true,
|
||||
blackbox: true,
|
||||
defaultValue: {},
|
||||
},
|
||||
errorMessages: {
|
||||
type: [String],
|
||||
optional: true,
|
||||
|
|
@ -130,6 +136,9 @@ SessionData.helpers({
|
|||
getSelector() {
|
||||
return SessionData.unpickle(this.selector);
|
||||
},
|
||||
getProjection() {
|
||||
return SessionData.unpickle(this.projection);
|
||||
},
|
||||
});
|
||||
|
||||
SessionData.unpickle = pickle => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue