diff options
author | Thuan Pham Quoc <thuanpq.io@gmail.com> | 2017-12-01 15:26:41 +0700 |
---|---|---|
committer | Thuan Pham Quoc <thuanpq.io@gmail.com> | 2017-12-01 15:26:41 +0700 |
commit | 3dc326db6a2ffe258f4da33645abd3326275d156 (patch) | |
tree | db3a8f7d0bb2245f970073802881a962e44add7f /client/components | |
parent | b3eab212aefc0012311cb59452c47a2627e5f472 (diff) | |
download | wekan-3dc326db6a2ffe258f4da33645abd3326275d156.tar.gz wekan-3dc326db6a2ffe258f4da33645abd3326275d156.tar.bz2 wekan-3dc326db6a2ffe258f4da33645abd3326275d156.zip |
Move user-admin subsciption to header
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/boards/boardsList.js | 1 | ||||
-rw-r--r-- | client/components/main/header.js | 2 | ||||
-rw-r--r-- | client/components/users/userHeader.js | 6 |
3 files changed, 2 insertions, 7 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index 6c9600a1..cc4e2f87 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -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() { diff --git a/client/components/main/header.js b/client/components/main/header.js index b005775a..3155b3d9 100644 --- a/client/components/main/header.js +++ b/client/components/main/header.js @@ -1,3 +1,5 @@ +Meteor.subscribe('user-admin'); + Template.header.helpers({ wrappedHeader() { return !Session.get('currentBoard'); diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js index ccb09148..f8a1c8b7 100644 --- a/client/components/users/userHeader.js +++ b/client/components/users/userHeader.js @@ -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'), |