mirror of
https://github.com/wekan/wekan.git
synced 2025-12-30 14:18:48 +01:00
implement getDefaultSwimline for boards
This commit is contained in:
parent
aead18eb58
commit
04745f0c2f
4 changed files with 15 additions and 11 deletions
|
|
@ -337,6 +337,18 @@ Boards.helpers({
|
|||
getDefaultSubtasksList() {
|
||||
return Lists.findOne(this.getDefaultSubtasksListId());
|
||||
},
|
||||
|
||||
getDefaultSwimline() {
|
||||
let result = Swimlanes.findOne({boardId: this._id});
|
||||
if (result === undefined) {
|
||||
Swimlanes.insert({
|
||||
title: TAPi18n.__('default'),
|
||||
boardId: this._id,
|
||||
});
|
||||
result = Swimlanes.findOne({boardId: this._id});
|
||||
}
|
||||
return result;
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue