summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authornztqa <nztqa@users.noreply.github.com>2017-09-25 14:52:55 +0900
committernztqa <nztqa@users.noreply.github.com>2017-09-25 14:52:55 +0900
commitb503ba1144454234c3b9f852aefcde6e4a262a63 (patch)
tree9bd64aa3e89c37d8e38e9c70db35c308a3b1dacd /client/components/cards
parent415343bbd0184059ab5b4c838e26bc14fa2c7627 (diff)
downloadwekan-b503ba1144454234c3b9f852aefcde6e4a262a63.tar.gz
wekan-b503ba1144454234c3b9f852aefcde6e4a262a63.tar.bz2
wekan-b503ba1144454234c3b9f852aefcde6e4a262a63.zip
Add comments only in activity feed
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/cardDetails.jade7
-rw-r--r--client/components/cards/cardDetails.js3
2 files changed, 9 insertions, 1 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index 09e0532c..3a144557 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -85,7 +85,12 @@ template(name="cardDetails")
+attachmentsGalery
hr
- h2 {{ _ 'activity'}}
+ .activity-title
+ h2 {{ _ 'activity'}}
+ .material-toggle-switch
+ span.toggle-switch-title {{_ 'hide-system-messages'}}
+ input.toggle-switch(type="checkbox" id="toggleButton")
+ label.toggle-label(for="toggleButton")
if currentUser.isBoardMember
+commentForm
if isLoaded.get
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 7c6c3ce7..d622c912 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -99,6 +99,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');