summaryrefslogtreecommitdiffstats
path: root/client/components/activities
diff options
context:
space:
mode:
authorMario Orlicky <orlickymario@gmail.com>2016-11-19 19:02:33 +0100
committerMario Orlicky <orlickymario@gmail.com>2016-11-19 19:02:33 +0100
commit8290dcb249fa9044a6d491c618dbe9c727d41214 (patch)
tree029244a1c34693454558a667ae22fa4534c3bbd1 /client/components/activities
parent94cdcff79f79079263056905f6a3f1128088e0a8 (diff)
downloadwekan-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')
-rw-r--r--client/components/activities/activities.js4
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