diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-03-11 11:42:22 +0100 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-03-11 11:42:22 +0100 |
commit | ebc4d6fdbd56efa5b726f10a6d7c02f0c7864040 (patch) | |
tree | 050af9083198a4f21458d38e5bfbeede360834bd /models/wekanCreator.js | |
parent | 35ffd0281413aa4071ddef2072ec75c8f2d96025 (diff) | |
download | wekan-ebc4d6fdbd56efa5b726f10a6d7c02f0c7864040.tar.gz wekan-ebc4d6fdbd56efa5b726f10a6d7c02f0c7864040.tar.bz2 wekan-ebc4d6fdbd56efa5b726f10a6d7c02f0c7864040.zip |
wekan-import: also import each card color
Diffstat (limited to 'models/wekanCreator.js')
-rw-r--r-- | models/wekanCreator.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/wekanCreator.js b/models/wekanCreator.js index 2d3ec5de..7b265911 100644 --- a/models/wekanCreator.js +++ b/models/wekanCreator.js @@ -298,6 +298,10 @@ export class WekanCreator { cardToCreate.members = wekanMembers; } } + // set color + if (card.color) { + cardToCreate.color = card.color; + } // insert card const cardId = Cards.direct.insert(cardToCreate); // keep track of Wekan id => Wekan id |