mirror of
https://github.com/wekan/wekan.git
synced 2026-02-11 02:34:20 +01:00
Add imported card location
This commit is contained in:
parent
f0597ef0c4
commit
bce2242528
3 changed files with 24 additions and 0 deletions
|
|
@ -703,6 +703,20 @@ Cards.helpers({
|
|||
}
|
||||
},
|
||||
|
||||
getBoardTitle() {
|
||||
if (this.isImportedCard()) {
|
||||
const card = Cards.findOne({ _id: this.importedId });
|
||||
const board = Boards.findOne({ _id: card.boardId });
|
||||
return board.title;
|
||||
} else if (this.isImportedBoard()) {
|
||||
const board = Boards.findOne({ _id: this.importedId});
|
||||
return board.title;
|
||||
} else {
|
||||
const board = Boards.findOne({ _id: this.boardId });
|
||||
return board.title;
|
||||
}
|
||||
},
|
||||
|
||||
setTitle(title) {
|
||||
if (this.isImportedCard()) {
|
||||
return Cards.update(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue