summaryrefslogtreecommitdiffstats
path: root/client/components/cards/subtasks.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-04-08 23:16:48 +0300
committerLauri Ojansivu <x@xet7.org>2020-04-08 23:16:48 +0300
commit5ebb47cb0ec7272894a37d99579ede872251f55c (patch)
treeceb4d44c91c0b90d4e2a2e29274117c86fbb8f0a /client/components/cards/subtasks.js
parent115701fa653067f05ad53677d4398d25e89402b6 (diff)
downloadwekan-5ebb47cb0ec7272894a37d99579ede872251f55c.tar.gz
wekan-5ebb47cb0ec7272894a37d99579ede872251f55c.tar.bz2
wekan-5ebb47cb0ec7272894a37d99579ede872251f55c.zip
Add setting default NOTIFICATION_TRAY_AFTER_READ_DAYS_BEFORE_REMOVE=2
to all Wekan platforms https://github.com/wekan/wekan/pull/2998 Thanks to xet7 !
Diffstat (limited to 'client/components/cards/subtasks.js')
-rw-r--r--client/components/cards/subtasks.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/client/components/cards/subtasks.js b/client/components/cards/subtasks.js
index cdc227fc..4cd15c11 100644
--- a/client/components/cards/subtasks.js
+++ b/client/components/cards/subtasks.js
@@ -22,11 +22,20 @@ BlazeComponent.extendComponent({
const listId = targetBoard.getDefaultSubtasksListId();
//Get the full swimlane data for the parent task.
- const parentSwimlane = Swimlanes.findOne({boardId: crtBoard._id, _id: card.swimlaneId});
+ const parentSwimlane = Swimlanes.findOne({
+ boardId: crtBoard._id,
+ _id: card.swimlaneId,
+ });
//find the swimlane of the same name in the target board.
- const targetSwimlane = Swimlanes.findOne({boardId: targetBoard._id, title: parentSwimlane.title});
+ const targetSwimlane = Swimlanes.findOne({
+ boardId: targetBoard._id,
+ title: parentSwimlane.title,
+ });
//If no swimlane with a matching title exists in the target board, fall back to the default swimlane.
- const swimlaneId = targetSwimlane === undefined ? targetBoard.getDefaultSwimline()._id : targetSwimlane._id;
+ const swimlaneId =
+ targetSwimlane === undefined
+ ? targetBoard.getDefaultSwimline()._id
+ : targetSwimlane._id;
if (title) {
const _id = Cards.insert({