mirror of
https://github.com/wekan/wekan.git
synced 2026-03-13 08:56:13 +01:00
Convert cardDetails, cardCustomFields, cardDate, cardTime, cardDescription, attachments, checklists, labels, minicard, resultCard, and subtasks to use native Meteor Template pattern.
22 lines
540 B
JavaScript
22 lines
540 B
JavaScript
Template.resultCard.helpers({
|
|
userId() {
|
|
return Meteor.userId();
|
|
},
|
|
});
|
|
|
|
Template.resultCard.events({
|
|
'click .js-minicard'(event) {
|
|
event.preventDefault();
|
|
const cardId = Template.currentData()._id;
|
|
const boardId = Template.currentData().boardId;
|
|
Meteor.subscribe('popupCardData', cardId, {
|
|
onReady() {
|
|
Session.set('popupCardId', cardId);
|
|
Session.set('popupCardBoardId', boardId);
|
|
if (!Popup.isOpen()) {
|
|
Popup.open("cardDetails")(event);
|
|
}
|
|
},
|
|
});
|
|
},
|
|
});
|