summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThuan Pham Quoc <thuanpq.io@gmail.com>2017-12-06 15:39:54 +0700
committerThuan Pham Quoc <thuanpq.io@gmail.com>2017-12-06 15:39:54 +0700
commitc686cadfef27bb84966f807681874d91b96450c6 (patch)
treeab7b4bc5073849e58cf8a2148d454b9af0cfe180
parente2f768c6a0f913b7c5f07695dce8cec692037255 (diff)
downloadwekan-c686cadfef27bb84966f807681874d91b96450c6.tar.gz
wekan-c686cadfef27bb84966f807681874d91b96450c6.tar.bz2
wekan-c686cadfef27bb84966f807681874d91b96450c6.zip
Fixed - boards subscription should be placed at header for all other component can be used
-rw-r--r--client/components/boards/boardsList.js2
-rw-r--r--client/components/main/header.js1
2 files changed, 1 insertions, 2 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js
index cc4e2f87..1ed88146 100644
--- a/client/components/boards/boardsList.js
+++ b/client/components/boards/boardsList.js
@@ -2,8 +2,6 @@ const subManager = new SubsManager();
BlazeComponent.extendComponent({
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');
},
diff --git a/client/components/main/header.js b/client/components/main/header.js
index 3155b3d9..7fbc5716 100644
--- a/client/components/main/header.js
+++ b/client/components/main/header.js
@@ -1,4 +1,5 @@
Meteor.subscribe('user-admin');
+Meteor.subscribe('boards');
Template.header.helpers({
wrappedHeader() {