mirror of
https://github.com/wekan/wekan.git
synced 2026-01-24 18:26:10 +01:00
Move every Lists.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory client/)
This commit is contained in:
parent
c2139662cd
commit
4a8dcde8ee
6 changed files with 14 additions and 14 deletions
|
|
@ -187,8 +187,8 @@ BlazeComponent.extendComponent({
|
|||
return ret;
|
||||
},
|
||||
boardLists(boardId) {
|
||||
const lists = Lists.find({ 'boardId': boardId, 'archived': false },{sort: ['sort','asc']});
|
||||
/* Bug Board icons random dance https://github.com/wekan/wekan/issues/4214
|
||||
const lists = ReactiveCache.getLists({ 'boardId': boardId, 'archived': false },{sort: ['sort','asc']});
|
||||
const ret = lists.map(list => {
|
||||
let cardCount = ReactiveCache.getCards({ 'boardId': boardId, 'listId': list._id }).length;
|
||||
return `${list.title}: ${cardCount}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue