Refactor imported -> linked in components

This commit is contained in:
Andrés Manelli 2018-05-02 15:03:22 -03:00
parent 6adfcb3513
commit f76d8e47a8
11 changed files with 52 additions and 53 deletions

View file

@ -24,9 +24,9 @@ BlazeComponent.extendComponent({
const card = this.currentData();
let boardId = card.boardId;
let cardId = card._id;
if (card.isImportedCard()) {
boardId = Cards.findOne(card.importedId).boardId;
cardId = card.importedId;
if (card.isLinkedCard()) {
boardId = Cards.findOne(card.linkedId).boardId;
cardId = card.linkedId;
}
if (text) {
CardComments.insert({