Indicate board or card through icons. Indicate if archived

This commit is contained in:
Andrés Manelli 2018-04-20 23:52:13 -03:00
parent 10aab8a733
commit f0597ef0c4
6 changed files with 40 additions and 4 deletions

View file

@ -721,6 +721,18 @@ Cards.helpers({
);
}
},
getArchived() {
if (this.isImportedCard()) {
const card = Cards.findOne({ _id: this.importedId });
return card.archived;
} else if (this.isImportedBoard()) {
const board = Boards.findOne({ _id: this.importedId});
return board.archived;
} else {
return this.archived;
}
},
});
Cards.mutations({