mirror of
https://github.com/wekan/wekan.git
synced 2026-02-19 06:28:06 +01:00
Indicate board or card through icons. Indicate if archived
This commit is contained in:
parent
10aab8a733
commit
f0597ef0c4
6 changed files with 40 additions and 4 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue