Bläddra i källkod

Fixed - boards subscription should be placed at header for all other component can be used

Thuan Pham Quoc 7 år sedan
förälder
incheckning
c686cadfef
2 ändrade filer med 1 tillägg och 2 borttagningar
  1. 0 2
      client/components/boards/boardsList.js
  2. 1 0
      client/components/main/header.js

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

@@ -2,8 +2,6 @@ const subManager = new SubsManager();
 
 
 BlazeComponent.extendComponent({
 BlazeComponent.extendComponent({
   onCreated() {
   onCreated() {
-    // Here is the only place that boards data needed, all boards data will stop sync when leaving this template.
-    Meteor.subscribe('boards');
     Meteor.subscribe('setting');
     Meteor.subscribe('setting');
   },
   },
 
 

+ 1 - 0
client/components/main/header.js

@@ -1,4 +1,5 @@
 Meteor.subscribe('user-admin');
 Meteor.subscribe('user-admin');
+Meteor.subscribe('boards');
 
 
 Template.header.helpers({
 Template.header.helpers({
   wrappedHeader() {
   wrappedHeader() {