mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Define sort property on swimlanes and lists
This commit is contained in:
parent
359d0b376f
commit
539c1ab87a
3 changed files with 9 additions and 5 deletions
|
|
@ -379,6 +379,7 @@ export class TrelloCreator {
|
|||
// we require.
|
||||
createdAt: this._now(this.createdAt.lists[list.id]),
|
||||
title: list.name,
|
||||
sort: list.pos,
|
||||
};
|
||||
const listId = Lists.direct.insert(listToCreate);
|
||||
Lists.direct.update(listId, {$set: {'updatedAt': this._now()}});
|
||||
|
|
@ -410,6 +411,7 @@ export class TrelloCreator {
|
|||
// we require.
|
||||
createdAt: this._now(),
|
||||
title: 'Default',
|
||||
sort: 1,
|
||||
};
|
||||
const swimlaneId = Swimlanes.direct.insert(swimlaneToCreate);
|
||||
Swimlanes.direct.update(swimlaneId, {$set: {'updatedAt': this._now()}});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue