Move user-admin subsciption to header

This commit is contained in:
Thuan Pham Quoc 2017-12-01 15:26:41 +07:00
parent b3eab212ae
commit 3dc326db6a
3 changed files with 2 additions and 7 deletions

View file

@ -5,7 +5,6 @@ BlazeComponent.extendComponent({
// 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('user-admin');
},
boards() {

View file

@ -1,3 +1,5 @@
Meteor.subscribe('user-admin');
Template.header.helpers({
wrappedHeader() {
return !Session.get('currentBoard');

View file

@ -3,12 +3,6 @@ Template.headerUserBar.events({
'click .js-change-avatar': Popup.open('changeAvatar'),
});
BlazeComponent.extendComponent({
onCreated() {
Meteor.subscribe('user-admin');
},
}).register('memberMenuPopup');
Template.memberMenuPopup.events({
'click .js-edit-profile': Popup.open('editProfile'),
'click .js-change-settings': Popup.open('changeSettings'),