summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-25 22:01:02 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-26 14:32:51 +0300
commit04745f0c2fe83f044032713e1864c5ac00d38ac9 (patch)
tree821d897115154a844e39cf085499995cb1562be1 /client/components
parentaead18eb58e230ed06ac090f7ea36c64fd597992 (diff)
downloadwekan-04745f0c2fe83f044032713e1864c5ac00d38ac9.tar.gz
wekan-04745f0c2fe83f044032713e1864c5ac00d38ac9.tar.bz2
wekan-04745f0c2fe83f044032713e1864c5ac00d38ac9.zip
implement getDefaultSwimline for boards
Diffstat (limited to 'client/components')
-rw-r--r--client/components/cards/subtasks.js2
-rw-r--r--client/components/lists/listBody.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/components/cards/subtasks.js b/client/components/cards/subtasks.js
index 087824f7..335eba36 100644
--- a/client/components/cards/subtasks.js
+++ b/client/components/cards/subtasks.js
@@ -16,7 +16,7 @@ BlazeComponent.extendComponent({
const crtBoard = Boards.findOne(card.boardId);
const targetBoard = crtBoard.getDefaultSubtasksBoard();
const listId = targetBoard.getDefaultSubtasksListId();
- const swimlaneId = Swimlanes.findOne({boardId: targetBoard._id})._id;
+ const swimlaneId = targetBoard.getDefaultSwimline()._id;
if (title) {
const _id = Cards.insert({
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 4bf7b369..34aeb8a8 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -46,7 +46,7 @@ BlazeComponent.extendComponent({
if (boardView === 'board-view-swimlanes')
swimlaneId = this.parentComponent().parentComponent().data()._id;
else if (boardView === 'board-view-lists')
- swimlaneId = Swimlanes.findOne({boardId})._id;
+ swimlaneId = this.data().board().getDefaultSwimline()._id;
if (title) {
const _id = Cards.insert({