mirror of
https://github.com/wekan/wekan.git
synced 2025-12-26 12:18:49 +01:00
This commit fixes the download link in the activity feed on the sidebar and the mention link on card description and comments (replaced by a popup). `eslint .` now passes without any error or warning. Fixes #286
15 lines
370 B
JavaScript
15 lines
370 B
JavaScript
Blaze.registerHelper('currentBoard', () => {
|
|
const boardId = Session.get('currentBoard');
|
|
if (boardId) {
|
|
return Boards.findOne(boardId);
|
|
}
|
|
});
|
|
|
|
Blaze.registerHelper('currentCard', () => {
|
|
const cardId = Session.get('currentCard');
|
|
if (cardId) {
|
|
return Cards.findOne(cardId);
|
|
}
|
|
});
|
|
|
|
Blaze.registerHelper('getUser', (userId) => Users.findOne(userId));
|