2015-05-27 17:17:00 +02:00
|
|
|
// Template.cards.events({
|
|
|
|
|
// 'click .member': Popup.open('cardMember')
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
BlazeComponent.extendComponent({
|
2015-09-03 23:12:46 +02:00
|
|
|
template() {
|
2015-05-27 17:17:00 +02:00
|
|
|
return 'minicard';
|
2015-09-03 23:12:46 +02:00
|
|
|
},
|
2018-04-20 23:52:13 -03:00
|
|
|
|
|
|
|
|
events() {
|
2019-06-28 12:52:09 -05:00
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
'click .js-linked-link'() {
|
|
|
|
|
if (this.data().isLinkedCard()) Utils.goCardId(this.data().linkedId);
|
|
|
|
|
else if (this.data().isLinkedBoard())
|
|
|
|
|
Utils.goBoardId(this.data().linkedId);
|
|
|
|
|
},
|
2018-04-20 23:52:13 -03:00
|
|
|
},
|
2019-08-07 18:11:34 +03:00
|
|
|
{
|
|
|
|
|
'click .js-toggle-minicard-label-text'() {
|
|
|
|
|
Meteor.call('toggleMinicardLabelText');
|
|
|
|
|
},
|
|
|
|
|
},
|
2019-06-28 12:52:09 -05:00
|
|
|
];
|
2018-04-20 23:52:13 -03:00
|
|
|
},
|
2015-05-27 17:17:00 +02:00
|
|
|
}).register('minicard');
|
2019-08-07 18:11:34 +03:00
|
|
|
|
|
|
|
|
Template.minicard.helpers({
|
2019-09-17 01:39:10 +03:00
|
|
|
showDesktopDragHandles() {
|
|
|
|
|
return Meteor.user().hasShowDesktopDragHandles();
|
|
|
|
|
},
|
2019-08-07 18:11:34 +03:00
|
|
|
hiddenMinicardLabelText() {
|
|
|
|
|
return Meteor.user().hasHiddenMinicardLabelText();
|
|
|
|
|
},
|
|
|
|
|
});
|