summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-03-11 11:47:01 +0100
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-03-11 11:47:01 +0100
commitd03a7e7a98e38cf051bcb699aff6d5b9ceb56c36 (patch)
treef696fcd3c04dd9a2a09415eab88bf12d9c20a0d5
parentebc4d6fdbd56efa5b726f10a6d7c02f0c7864040 (diff)
downloadwekan-d03a7e7a98e38cf051bcb699aff6d5b9ceb56c36.tar.gz
wekan-d03a7e7a98e38cf051bcb699aff6d5b9ceb56c36.tar.bz2
wekan-d03a7e7a98e38cf051bcb699aff6d5b9ceb56c36.zip
wekan-import: also import each swimlane color
-rw-r--r--models/wekanCreator.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/wekanCreator.js b/models/wekanCreator.js
index 7b265911..3a627424 100644
--- a/models/wekanCreator.js
+++ b/models/wekanCreator.js
@@ -488,6 +488,10 @@ export class WekanCreator {
title: swimlane.title,
sort: swimlane.sort ? swimlane.sort : swimlaneIndex,
};
+ // set color
+ if (swimlane.color) {
+ swimlaneToCreate.color = swimlane.color;
+ }
const swimlaneId = Swimlanes.direct.insert(swimlaneToCreate);
Swimlanes.direct.update(swimlaneId, {
$set: {