diff options
author | Mario Orlicky <orlickymario@gmail.com> | 2016-11-19 19:02:33 +0100 |
---|---|---|
committer | Mario Orlicky <orlickymario@gmail.com> | 2016-11-19 19:02:33 +0100 |
commit | 8290dcb249fa9044a6d491c618dbe9c727d41214 (patch) | |
tree | 029244a1c34693454558a667ae22fa4534c3bbd1 /client/components/activities/activities.js | |
parent | 94cdcff79f79079263056905f6a3f1128088e0a8 (diff) | |
download | wekan-8290dcb249fa9044a6d491c618dbe9c727d41214.tar.gz wekan-8290dcb249fa9044a6d491c618dbe9c727d41214.tar.bz2 wekan-8290dcb249fa9044a6d491c618dbe9c727d41214.zip |
New change settings option and possibility to hide system messagaes
Diffstat (limited to 'client/components/activities/activities.js')
-rw-r--r-- | client/components/activities/activities.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js index 0bd6a272..6600849c 100644 --- a/client/components/activities/activities.js +++ b/client/components/activities/activities.js @@ -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 |