Skip to content

Commit

Permalink
Add default swimlane to welkome board
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmanelli committed Feb 3, 2018
1 parent 73401a5 commit 9df3e3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@
"watching": "Watching",
"watching-info": "You will be notified of any change in this board",
"welcome-board": "Welcome Board",
"welcome-swimlane": "Milestone 1",
"welcome-list1": "Basics",
"welcome-list2": "Advanced",
"what-to-do": "What do you want to do?",
Expand Down
5 changes: 5 additions & 0 deletions models/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,11 @@ if (Meteor.isServer) {
permission: 'private',
}, fakeUser, (err, boardId) => {

Swimlanes.insert({
title: TAPi18n.__('welcome-swimlane'),
boardId
}, fakeUser);

['welcome-list1', 'welcome-list2'].forEach((title) => {
Lists.insert({title: TAPi18n.__(title), boardId}, fakeUser);
});
Expand Down

0 comments on commit 9df3e3d

Please sign in to comment.