mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Make possible for lists to have different names at different swimlanes. Make possible to drag list from one swimlane to another swimlane.
Thanks to xet7 !
This commit is contained in:
parent
39daf56811
commit
719ef87efc
5 changed files with 144 additions and 12 deletions
|
|
@ -777,13 +777,22 @@ Boards.helpers({
|
|||
{
|
||||
boardId: this._id,
|
||||
archived: false,
|
||||
// Get lists for all swimlanes in this board
|
||||
swimlaneId: { $in: this.swimlanes().map(s => s._id) },
|
||||
},
|
||||
{ sort: sortKey },
|
||||
);
|
||||
},
|
||||
|
||||
draggableLists() {
|
||||
return ReactiveCache.getLists({ boardId: this._id }, { sort: { sort: 1 } });
|
||||
return ReactiveCache.getLists(
|
||||
{
|
||||
boardId: this._id,
|
||||
// Get lists for all swimlanes in this board
|
||||
swimlaneId: { $in: this.swimlanes().map(s => s._id) }
|
||||
},
|
||||
{ sort: { sort: 1 } }
|
||||
);
|
||||
},
|
||||
|
||||
/** returns the last list
|
||||
|
|
@ -1171,6 +1180,7 @@ Boards.helpers({
|
|||
this.subtasksDefaultListId = Lists.insert({
|
||||
title: TAPi18n.__('queue'),
|
||||
boardId: this._id,
|
||||
swimlaneId: this.getDefaultSwimline()._id, // Set default swimlane for subtasks list
|
||||
});
|
||||
this.setSubtasksDefaultListId(this.subtasksDefaultListId);
|
||||
}
|
||||
|
|
@ -1189,6 +1199,7 @@ Boards.helpers({
|
|||
this.dateSettingsDefaultListId = Lists.insert({
|
||||
title: TAPi18n.__('queue'),
|
||||
boardId: this._id,
|
||||
swimlaneId: this.getDefaultSwimline()._id, // Set default swimlane for date settings list
|
||||
});
|
||||
this.setDateSettingsDefaultListId(this.dateSettingsDefaultListId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue