Explorar el Código

Add default swimlane to welkome board

Andrés Manelli hace 7 años
padre
commit
9df3e3d26b
Se han modificado 2 ficheros con 6 adiciones y 0 borrados
  1. 1 0
      i18n/en.i18n.json
  2. 5 0
      models/users.js

+ 1 - 0
i18n/en.i18n.json

@@ -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?",

+ 5 - 0
models/users.js

@@ -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);
           });