mirror of
https://github.com/wekan/wekan.git
synced 2026-01-27 19:56:09 +01:00
Move every Team.findOne() to the ReactiveCache
This commit is contained in:
parent
2ab34d3b87
commit
fe2015735a
4 changed files with 32 additions and 9 deletions
|
|
@ -148,18 +148,18 @@ BlazeComponent.extendComponent({
|
|||
|
||||
Template.boardTeamRow.helpers({
|
||||
teamData() {
|
||||
return Team.findOne(this.teamId);
|
||||
return ReactiveCache.getTeam(this.teamId);
|
||||
},
|
||||
});
|
||||
|
||||
Template.boardTeamName.helpers({
|
||||
teamName() {
|
||||
const team = Team.findOne(this.teamId);
|
||||
const team = ReactiveCache.getTeam(this.teamId);
|
||||
return team && team.teamDisplayName;
|
||||
},
|
||||
|
||||
teamViewPortWidth() {
|
||||
const team = Team.findOne(this.teamId);
|
||||
const team = ReactiveCache.getTeam(this.teamId);
|
||||
return ((team && team.teamDisplayName.length) || 1) * 12;
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue