summaryrefslogtreecommitdiffstats
path: root/client/components/cards/minicard.js
blob: 5202232b97b4e4d0caa11d352930e1993e6327a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Template.cards.events({
//   'click .member': Popup.open('cardMember')
// });

BlazeComponent.extendComponent({
  template() {
    return 'minicard';
  },
  importedCard() {
    return this.currentData().type === 'cardType-importedCard';
  },
  importedBoard() {
    return this.currentData().type === 'cardType-importedBoard';
  },
  imported() {
    return this.importedCard() || this.importedBoard();
  },
}).register('minicard');