2021-01-13 21:46:18 +02:00
|
|
|
Template.resultCard.helpers({
|
|
|
|
|
userId() {
|
|
|
|
|
return Meteor.userId();
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
Migrate card components from BlazeComponent to Template
Convert cardDetails, cardCustomFields, cardDate, cardTime,
cardDescription, attachments, checklists, labels, minicard,
resultCard, and subtasks to use native Meteor Template pattern.
2026-03-08 11:01:13 +02:00
|
|
|
Template.resultCard.events({
|
|
|
|
|
'click .js-minicard'(event) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
const cardId = Template.currentData()._id;
|
|
|
|
|
const boardId = Template.currentData().boardId;
|
2021-11-08 11:47:41 +01:00
|
|
|
Meteor.subscribe('popupCardData', cardId, {
|
|
|
|
|
onReady() {
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', cardId);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', boardId);
|
Migrate card components from BlazeComponent to Template
Convert cardDetails, cardCustomFields, cardDate, cardTime,
cardDescription, attachments, checklists, labels, minicard,
resultCard, and subtasks to use native Meteor Template pattern.
2026-03-08 11:01:13 +02:00
|
|
|
if (!Popup.isOpen()) {
|
|
|
|
|
Popup.open("cardDetails")(event);
|
|
|
|
|
}
|
2021-11-08 11:47:41 +01:00
|
|
|
},
|
|
|
|
|
});
|
2021-10-21 13:34:36 +02:00
|
|
|
},
|
Migrate card components from BlazeComponent to Template
Convert cardDetails, cardCustomFields, cardDate, cardTime,
cardDescription, attachments, checklists, labels, minicard,
resultCard, and subtasks to use native Meteor Template pattern.
2026-03-08 11:01:13 +02:00
|
|
|
});
|