minicard.js 437 B

123456789101112131415161718
  1. // Template.cards.events({
  2. // 'click .member': Popup.open('cardMember')
  3. // });
  4. BlazeComponent.extendComponent({
  5. template() {
  6. return 'minicard';
  7. },
  8. importedCard() {
  9. return this.currentData().type === 'cardType-importedCard';
  10. },
  11. importedBoard() {
  12. return this.currentData().type === 'cardType-importedBoard';
  13. },
  14. imported() {
  15. return this.importedCard() || this.importedBoard();
  16. },
  17. }).register('minicard');