mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 13:18:49 +01:00
Merge pull request #19 from mario-orlicky/hide-system-messages
New change settings option and possibility to hide system messagaes
This commit is contained in:
commit
1ad4107201
6 changed files with 57 additions and 9 deletions
|
|
@ -5,6 +5,7 @@ Template.headerUserBar.events({
|
|||
|
||||
Template.memberMenuPopup.events({
|
||||
'click .js-edit-profile': Popup.open('editProfile'),
|
||||
'click .js-change-settings': Popup.open('changeSettings'),
|
||||
'click .js-change-avatar': Popup.open('changeAvatar'),
|
||||
'click .js-change-password': Popup.open('changePassword'),
|
||||
'click .js-change-language': Popup.open('changeLanguage'),
|
||||
|
|
@ -89,3 +90,15 @@ Template.changeLanguagePopup.events({
|
|||
evt.preventDefault();
|
||||
},
|
||||
});
|
||||
|
||||
Template.changeSettingsPopup.helpers({
|
||||
hiddenSystemMessages() {
|
||||
return Meteor.user().hasHiddenSystemMessages();
|
||||
},
|
||||
});
|
||||
|
||||
Template.changeSettingsPopup.events({
|
||||
'click .js-toggle-system-messages'() {
|
||||
Meteor.call('toggleSystemMessages');
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue