mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 18:30:13 +01:00
Move user-admin subsciption to header
This commit is contained in:
parent
b3eab212ae
commit
3dc326db6a
3 changed files with 2 additions and 7 deletions
|
|
@ -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.
|
// Here is the only place that boards data needed, all boards data will stop sync when leaving this template.
|
||||||
Meteor.subscribe('boards');
|
Meteor.subscribe('boards');
|
||||||
Meteor.subscribe('setting');
|
Meteor.subscribe('setting');
|
||||||
Meteor.subscribe('user-admin');
|
|
||||||
},
|
},
|
||||||
|
|
||||||
boards() {
|
boards() {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
Meteor.subscribe('user-admin');
|
||||||
|
|
||||||
Template.header.helpers({
|
Template.header.helpers({
|
||||||
wrappedHeader() {
|
wrappedHeader() {
|
||||||
return !Session.get('currentBoard');
|
return !Session.get('currentBoard');
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,6 @@ Template.headerUserBar.events({
|
||||||
'click .js-change-avatar': Popup.open('changeAvatar'),
|
'click .js-change-avatar': Popup.open('changeAvatar'),
|
||||||
});
|
});
|
||||||
|
|
||||||
BlazeComponent.extendComponent({
|
|
||||||
onCreated() {
|
|
||||||
Meteor.subscribe('user-admin');
|
|
||||||
},
|
|
||||||
}).register('memberMenuPopup');
|
|
||||||
|
|
||||||
Template.memberMenuPopup.events({
|
Template.memberMenuPopup.events({
|
||||||
'click .js-edit-profile': Popup.open('editProfile'),
|
'click .js-edit-profile': Popup.open('editProfile'),
|
||||||
'click .js-change-settings': Popup.open('changeSettings'),
|
'click .js-change-settings': Popup.open('changeSettings'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue