mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
20 lines
464 B
JavaScript
20 lines
464 B
JavaScript
// Template.cards.events({
|
|
// 'click .member': Popup.open('cardMember')
|
|
// });
|
|
|
|
BlazeComponent.extendComponent({
|
|
template() {
|
|
return 'minicard';
|
|
},
|
|
|
|
events() {
|
|
return [{
|
|
'click .js-imported-link' (evt) {
|
|
if (this.data().isImportedCard())
|
|
Utils.goCardId(this.data().importedId);
|
|
else if (this.data().isImportedBoard())
|
|
Utils.goBoardId(this.data().importedId);
|
|
},
|
|
}];
|
|
},
|
|
}).register('minicard');
|