mirror of
https://github.com/wekan/wekan.git
synced 2026-02-14 04:04:21 +01:00
Bug fixes and buttons for previous and next page
* Use buttons for next and previous page in search results * Add custom routine for stringifying and parsing the selector to JSON so RegExp objects are preserved
This commit is contained in:
parent
4e8fc46475
commit
78a1d08a17
6 changed files with 74 additions and 15 deletions
|
|
@ -116,7 +116,7 @@ BlazeComponent.extendComponent({
|
|||
if (this.queryParams) {
|
||||
const sessionData = this.getSessionData();
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('selector:', JSON.parse(sessionData.selector));
|
||||
console.log('selector:', sessionData.getSelector());
|
||||
// console.log('session data:', sessionData);
|
||||
const cards = Cards.find({ _id: { $in: sessionData.cards } });
|
||||
this.queryErrors = sessionData.errors;
|
||||
|
|
@ -414,7 +414,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
const params = {
|
||||
limit: this.resultsPerPage,
|
||||
selector: JSON.parse(sessionData.selector),
|
||||
selector: sessionData.getSelector(),
|
||||
skip: sessionData.lastHit,
|
||||
};
|
||||
|
||||
|
|
@ -441,7 +441,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
const params = {
|
||||
limit: this.resultsPerPage,
|
||||
selector: JSON.parse(sessionData.selector),
|
||||
selector: sessionData.getSelector(),
|
||||
skip:
|
||||
sessionData.lastHit - sessionData.resultsCount - this.resultsPerPage,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue