mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 17:30:13 +01:00
As discussed in #370 and announced in the official Eslint-meteor plugin repository (https://github.com/dferber90/eslint-plugin-meteor), it is recommended to not use this plugin anymore has the author has it is currently broken and the author has abandoned it.
19 lines
486 B
JavaScript
19 lines
486 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));
|
|
|
|
Blaze.registerHelper('concat', function (...args) {
|
|
return Array.prototype.slice.call(args, 0, -1).join('');
|
|
});
|