mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
swimlane: insert the new swimlane after the one we clicked on
This commit is contained in:
parent
416b17062e
commit
c075187088
2 changed files with 22 additions and 2 deletions
|
@ -351,6 +351,17 @@ Boards.helpers({
|
|||
return Swimlanes.find({ boardId: this._id, archived: false }, { sort: { sort: 1 } });
|
||||
},
|
||||
|
||||
nextSwimlane(swimlane) {
|
||||
return Swimlanes.findOne({
|
||||
boardId: this._id,
|
||||
archived: false,
|
||||
sort: { $gte: swimlane.sort },
|
||||
_id: { $ne: swimlane._id },
|
||||
}, {
|
||||
sort: { sort: 1 },
|
||||
});
|
||||
},
|
||||
|
||||
hasOvertimeCards(){
|
||||
const card = Cards.findOne({isOvertime: true, boardId: this._id, archived: false} );
|
||||
return card !== undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue