mirror of
https://github.com/wekan/wekan.git
synced 2025-12-29 13:48:49 +01:00
New change settings option and possibility to hide system messagaes
This commit is contained in:
parent
94cdcff79f
commit
8290dcb249
6 changed files with 61 additions and 13 deletions
|
|
@ -12,10 +12,12 @@ BlazeComponent.extendComponent({
|
|||
const capitalizedMode = Utils.capitalize(mode);
|
||||
const id = Session.get(`current${capitalizedMode}`);
|
||||
const limit = this.page.get() * activitiesPerPage;
|
||||
const user = Meteor.user();
|
||||
const hideSystem = user ? user.hasHiddenSystemMessages() : false;
|
||||
if (id === null)
|
||||
return;
|
||||
|
||||
this.subscribe('activities', mode, id, limit, () => {
|
||||
this.subscribe('activities', mode, id, limit, hideSystem, () => {
|
||||
this.loadNextPageLocked = false;
|
||||
|
||||
// If the sibear peak hasn't increased, that mean that there are no more
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue