mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Disable button when "Hide system messages" in user profile setting is valid
This commit is contained in:
parent
b503ba1144
commit
61ee107c27
4 changed files with 15 additions and 4 deletions
|
|
@ -84,7 +84,9 @@ BlazeComponent.extendComponent({
|
|||
evt.preventDefault();
|
||||
Utils.goBoardId(Session.get('currentBoard'));
|
||||
} else {
|
||||
$('.toggle-switch').prop('checked', false);
|
||||
if (!Meteor.user().hasHiddenSystemMessages()) {
|
||||
$('.toggle-switch').prop('checked', false);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue