Define sort property on swimlanes and lists

This commit is contained in:
zebby76 2018-05-01 07:55:41 +02:00
parent 359d0b376f
commit 539c1ab87a
3 changed files with 9 additions and 5 deletions

View file

@ -566,10 +566,11 @@ if (Meteor.isServer) {
Swimlanes.insert({
title: TAPi18n.__('welcome-swimlane'),
boardId,
sort: 1,
}, fakeUser);
['welcome-list1', 'welcome-list2'].forEach((title) => {
Lists.insert({title: TAPi18n.__(title), boardId}, fakeUser);
['welcome-list1', 'welcome-list2'].forEach((title, titleIndex) => {
Lists.insert({title: TAPi18n.__(title), boardId, sort: titleIndex}, fakeUser);
});
});
});
@ -754,4 +755,3 @@ if (Meteor.isServer) {
}
});
}