summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDetails.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-10-01 09:48:52 +0300
committerLauri Ojansivu <x@xet7.org>2017-10-01 09:48:52 +0300
commita1d06727399a0d5a0cc11aee6a16ea253548727d (patch)
tree714a3cdb3f10b17e015c819ddac85dfec6c21722 /client/components/cards/cardDetails.js
parent6ec14ee52bca394189a0f1d41d20b597e90f6320 (diff)
parent7d3fed56ae2baf5d07294bff8998198b257c855a (diff)
downloadwekan-a1d06727399a0d5a0cc11aee6a16ea253548727d.tar.gz
wekan-a1d06727399a0d5a0cc11aee6a16ea253548727d.tar.bz2
wekan-a1d06727399a0d5a0cc11aee6a16ea253548727d.zip
Merge branch 'nztqa-improve-activities' into devel
Slider for Comments only in activity feed. Thanks to nztqa ! Closes #1182
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r--client/components/cards/cardDetails.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 587cd1bc..ecffe7aa 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -28,6 +28,11 @@ BlazeComponent.extendComponent({
return card.findWatcher(Meteor.userId());
},
+ hiddenSystemMessages() {
+ console.log('doo:', Meteor.user().hasHiddenSystemMessages());
+ return Meteor.user().hasHiddenSystemMessages();
+ },
+
canModifyCard() {
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
},
@@ -99,6 +104,9 @@ BlazeComponent.extendComponent({
this.parentComponent().showOverlay.set(true);
this.parentComponent().mouseHasEnterCardDetails = true;
},
+ 'click #toggleButton'() {
+ $('div.activity.js-card-activity:not(:has(.activity-comment))').toggle();
+ },
}];
},
}).register('cardDetails');