mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
add "currentList" to ReactiveCache
This commit is contained in:
parent
1b3135a79f
commit
c6ee58ef88
2 changed files with 14 additions and 6 deletions
|
|
@ -13,12 +13,8 @@ Blaze.registerHelper('currentCard', () => {
|
|||
});
|
||||
|
||||
Blaze.registerHelper('currentList', () => {
|
||||
const listId = Session.get('currentList');
|
||||
if (listId) {
|
||||
return Lists.findOne(listId);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
const ret = Utils.getCurrentList();
|
||||
return ret;
|
||||
});
|
||||
|
||||
Blaze.registerHelper('getUser', userId => Users.findOne(userId));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue