mirror of
https://github.com/wekan/wekan.git
synced 2026-02-10 18:24:21 +01:00
Bug fix for issue #3698
* Rewrite routine for building the My Cards hierarchical list * Use a separate publication for retrieving My Cards * Fix bug with limit and skip projectsion
This commit is contained in:
parent
769bb7a55d
commit
07a3301414
5 changed files with 104 additions and 176 deletions
|
|
@ -62,7 +62,6 @@ export class CardSearchPagedComponent extends BlazeComponent {
|
|||
// console.log('getting results');
|
||||
const sessionData = this.getSessionData();
|
||||
// eslint-disable-next-line no-console
|
||||
// console.log('selector:', sessionData.getSelector());
|
||||
console.log('session data:', sessionData);
|
||||
const cards = [];
|
||||
sessionData.cards.forEach(cardId => {
|
||||
|
|
@ -99,10 +98,8 @@ export class CardSearchPagedComponent extends BlazeComponent {
|
|||
}
|
||||
}
|
||||
|
||||
runGlobalSearch(queryParams) {
|
||||
this.searching.set(true);
|
||||
this.stopSubscription();
|
||||
this.subscriptionHandle = Meteor.subscribe(
|
||||
getSubscription(queryParams) {
|
||||
return Meteor.subscribe(
|
||||
'globalSearch',
|
||||
this.sessionId,
|
||||
queryParams.params,
|
||||
|
|
@ -111,6 +108,12 @@ export class CardSearchPagedComponent extends BlazeComponent {
|
|||
);
|
||||
}
|
||||
|
||||
runGlobalSearch(queryParams) {
|
||||
this.searching.set(true);
|
||||
this.stopSubscription();
|
||||
this.subscriptionHandle = this.getSubscription(queryParams);
|
||||
}
|
||||
|
||||
queryErrorMessages() {
|
||||
const messages = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue