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
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue