mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
Fixed build
This commit is contained in:
parent
8290dcb249
commit
4359f66ece
3 changed files with 9 additions and 9 deletions
|
@ -87,11 +87,11 @@ Template.changeLanguagePopup.events({
|
|||
Template.changeSettingsPopup.helpers({
|
||||
hiddenSystemMessages() {
|
||||
return Meteor.user().hasHiddenSystemMessages();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Template.changeSettingsPopup.events({
|
||||
'click .js-toggle-system-messages'(evt) {
|
||||
'click .js-toggle-system-messages'() {
|
||||
Meteor.call('toggleSystemMessages');
|
||||
},
|
||||
});
|
||||
|
|
|
@ -61,7 +61,7 @@ Users.attachSchema(new SimpleSchema({
|
|||
},
|
||||
'profile.hiddenSystemMessages': {
|
||||
type: Boolean,
|
||||
optional: true
|
||||
optional: true,
|
||||
},
|
||||
'profile.initials': {
|
||||
type: String,
|
||||
|
@ -296,7 +296,7 @@ Meteor.methods({
|
|||
}
|
||||
},
|
||||
toggleSystemMessages() {
|
||||
user = Meteor.user();
|
||||
const user = Meteor.user();
|
||||
user.toggleSystem(user.hasHiddenSystemMessages());
|
||||
},
|
||||
});
|
||||
|
|
|
@ -11,9 +11,9 @@ Meteor.publish('activities', (kind, id, limit, hideSystem) => {
|
|||
check(limit, Number);
|
||||
check(hideSystem, Boolean);
|
||||
|
||||
let selector = (hideSystem) ? {$and: [{activityType: 'addComment'}, {[`${kind}Id`]: id}]} : {[`${kind}Id`]: id};
|
||||
const selector = (hideSystem) ? {$and: [{activityType: 'addComment'}, {[`${kind}Id`]: id}]} : {[`${kind}Id`]: id};
|
||||
return Activities.find(selector, {
|
||||
limit,
|
||||
sort: {createdAt: -1},
|
||||
});
|
||||
});
|
||||
limit,
|
||||
sort: {createdAt: -1},
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue