mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Add card on first swimlane found
This commit is contained in:
parent
7b04f14e3c
commit
af119ff7c0
1 changed files with 8 additions and 1 deletions
|
|
@ -36,7 +36,14 @@ BlazeComponent.extendComponent({
|
||||||
const members = formComponent.members.get();
|
const members = formComponent.members.get();
|
||||||
const labelIds = formComponent.labels.get();
|
const labelIds = formComponent.labels.get();
|
||||||
|
|
||||||
const swimlaneId = this.parentComponent().parentComponent().data()._id;
|
const boardId = this.data().board()._id;
|
||||||
|
const board = Boards.findOne(boardId);
|
||||||
|
let swimlaneId = '';
|
||||||
|
if (board.view === 'board-view-swimlanes')
|
||||||
|
swimlaneId = this.parentComponent().parentComponent().data()._id;
|
||||||
|
else
|
||||||
|
swimlaneId = Swimlanes.findOne({boardId})._id;
|
||||||
|
|
||||||
if (title) {
|
if (title) {
|
||||||
const _id = Cards.insert({
|
const _id = Cards.insert({
|
||||||
title,
|
title,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue