mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01: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 = {
|
Utils = {
|
||||||
setBackgroundImage(url) {
|
setBackgroundImage(url) {
|
||||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||||
|
|
@ -36,7 +38,7 @@ Utils = {
|
||||||
*/
|
*/
|
||||||
getCurrentBoard() {
|
getCurrentBoard() {
|
||||||
const boardId = Utils.getCurrentBoardId();
|
const boardId = Utils.getCurrentBoardId();
|
||||||
const ret = Boards.findOne(boardId);
|
const ret = ReactiveCache.getBoard(boardId);
|
||||||
return ret;
|
return ret;
|
||||||
},
|
},
|
||||||
getCurrentCard(ignorePopupCard) {
|
getCurrentCard(ignorePopupCard) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue