summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorzebby76 <zebby76@gmail.com>2018-05-01 07:55:41 +0200
committerzebby76 <zebby76@gmail.com>2018-05-01 07:55:41 +0200
commit539c1ab87a098a7ddfd23cdbd663441bd609b73d (patch)
treead95b91805bea32b5d9d91941190ff3807eb13a6 /models/users.js
parent359d0b376f203a4d309a3a222d35a16b4ed161e3 (diff)
downloadwekan-539c1ab87a098a7ddfd23cdbd663441bd609b73d.tar.gz
wekan-539c1ab87a098a7ddfd23cdbd663441bd609b73d.tar.bz2
wekan-539c1ab87a098a7ddfd23cdbd663441bd609b73d.zip
Define sort property on swimlanes and lists
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/users.js b/models/users.js
index 41179875..20331a98 100644
--- a/models/users.js
+++ b/models/users.js
@@ -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) {
}
});
}
-