mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
currentBoard is very often called in jade files, so use there the cache too
This commit is contained in:
parent
16130b3f73
commit
30d154724a
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
|
||||
Utils = {
|
||||
setBackgroundImage(url) {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
|
@ -36,7 +38,7 @@ Utils = {
|
|||
*/
|
||||
getCurrentBoard() {
|
||||
const boardId = Utils.getCurrentBoardId();
|
||||
const ret = Boards.findOne(boardId);
|
||||
const ret = ReactiveCache.getBoard(boardId);
|
||||
return ret;
|
||||
},
|
||||
getCurrentCard(ignorePopupCard) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue