mirror of
https://github.com/wekan/wekan.git
synced 2026-02-02 14:41:47 +01:00
Move every Swimlanes.findOne() to the ReactiveCache
This commit is contained in:
parent
2f2aa7b08a
commit
bf48d4371c
6 changed files with 11 additions and 12 deletions
|
|
@ -29,10 +29,10 @@ Activities.helpers({
|
|||
return ReactiveCache.getList(this.listId);
|
||||
},
|
||||
swimlane() {
|
||||
return Swimlanes.findOne(this.swimlaneId);
|
||||
return ReactiveCache.getSwimlane(this.swimlaneId);
|
||||
},
|
||||
oldSwimlane() {
|
||||
return Swimlanes.findOne(this.oldSwimlaneId);
|
||||
return ReactiveCache.getSwimlane(this.oldSwimlaneId);
|
||||
},
|
||||
oldList() {
|
||||
return ReactiveCache.getList(this.oldListId);
|
||||
|
|
|
|||
|
|
@ -2688,7 +2688,7 @@ function cardMove(
|
|||
oldBoardId,
|
||||
oldBoardName: ReactiveCache.getBoard(oldBoardId).title,
|
||||
cardId: doc._id,
|
||||
swimlaneName: Swimlanes.findOne(doc.swimlaneId).title,
|
||||
swimlaneName: ReactiveCache.getSwimlane(doc.swimlaneId).title,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
oldSwimlaneId,
|
||||
});
|
||||
|
|
@ -2705,7 +2705,7 @@ function cardMove(
|
|||
boardId: doc.boardId,
|
||||
cardId: doc._id,
|
||||
cardTitle: doc.title,
|
||||
swimlaneName: Swimlanes.findOne(doc.swimlaneId).title,
|
||||
swimlaneName: ReactiveCache.getSwimlane(doc.swimlaneId).title,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
oldSwimlaneId,
|
||||
});
|
||||
|
|
@ -2917,7 +2917,7 @@ function cardCreation(userId, doc) {
|
|||
listId: doc.listId,
|
||||
cardId: doc._id,
|
||||
cardTitle: doc.title,
|
||||
swimlaneName: Swimlanes.findOne(doc.swimlaneId).title,
|
||||
swimlaneName: ReactiveCache.getSwimlane(doc.swimlaneId).title,
|
||||
swimlaneId: doc.swimlaneId,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue