Просмотр исходного кода

Shared Templates: In Progress. Hide this feature while it's not finished yet.

Thanks to xet7 !
Lauri Ojansivu 3 лет назад
Родитель
Сommit
3b4a44abb1
3 измененных файлов с 7 добавлено и 6 удалено
  1. 3 3
      client/components/boards/boardHeader.jade
  2. 2 1
      client/components/boards/boardsList.js
  3. 2 2
      models/users.js

+ 3 - 3
client/components/boards/boardHeader.jade

@@ -228,9 +228,9 @@ template(name="createBoard")
           = " "
           = " "
           | {{{_ 'board-private-info'}}}
           | {{{_ 'board-private-info'}}}
         a.js-change-visibility {{_ 'change'}}.
         a.js-change-visibility {{_ 'change'}}.
-    a.flex.js-toggle-add-template-container
-      .materialCheckBox#add-template-container
-      span {{_ 'add-template-container'}}
+    //a.flex.js-toggle-add-template-container
+    //  .materialCheckBox#add-template-container
+    //  span {{_ 'add-template-container'}}
     input.primary.wide(type="submit" value="{{_ 'create'}}")
     input.primary.wide(type="submit" value="{{_ 'create'}}")
     span.quiet
     span.quiet
       | {{_ 'or'}}
       | {{_ 'or'}}

+ 2 - 1
client/components/boards/boardsList.js

@@ -88,7 +88,8 @@ BlazeComponent.extendComponent({
   boards() {
   boards() {
     const query = {
     const query = {
       archived: false,
       archived: false,
-      type: { $in: ['board','template-container'] },
+      //type: { $in: ['board','template-container'] },
+      type: 'board',
     };
     };
     if (FlowRouter.getRouteName() === 'home')
     if (FlowRouter.getRouteName() === 'home')
       query['members.userId'] = Meteor.userId();
       query['members.userId'] = Meteor.userId();

+ 2 - 2
models/users.js

@@ -1507,7 +1507,7 @@ if (Meteor.isServer) {
             Lists.insert({title: TAPi18n.__(title), boardId, sort: titleIndex}, fakeUser);
             Lists.insert({title: TAPi18n.__(title), boardId, sort: titleIndex}, fakeUser);
           });
           });
         });
         });
-
+        */
 
 
         // Insert Template Container
         // Insert Template Container
         const Future = require('fibers/future');
         const Future = require('fibers/future');
@@ -1594,7 +1594,7 @@ if (Meteor.isServer) {
         future1.wait();
         future1.wait();
         future2.wait();
         future2.wait();
         future3.wait();
         future3.wait();
-        */
+        // End of Insert Template Container
       });
       });
     });
     });
   }
   }