mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Refactor imported -> linked in components
This commit is contained in:
parent
6adfcb3513
commit
f76d8e47a8
11 changed files with 52 additions and 53 deletions
|
|
@ -57,9 +57,9 @@ Template.cardAttachmentsPopup.events({
|
|||
const card = this;
|
||||
FS.Utility.eachFile(evt, (f) => {
|
||||
const file = new FS.File(f);
|
||||
if (card.isImportedCard()) {
|
||||
file.boardId = Cards.findOne(card.importedId).boardId;
|
||||
file.cardId = card.importedId;
|
||||
if (card.isLinkedCard()) {
|
||||
file.boardId = Cards.findOne(card.linkedId).boardId;
|
||||
file.cardId = card.linkedId;
|
||||
} else {
|
||||
file.boardId = card.boardId;
|
||||
file.cardId = card._id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue