Merge pull request #447 from coralproject/total-counts

show the total comment count instead of the parent count
This commit is contained in:
Kim Gardner
2017-03-29 14:10:05 -04:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ class Embed extends Component {
<div style={expandForLogin}>
<div className="commentStream">
<TabBar onChange={this.changeTab} activeTab={activeTab}>
<Tab><Count count={asset.commentCount}/></Tab>
<Tab><Count count={asset.totalCommentCount}/></Tab>
<Tab>{lang.t('MY_COMMENTS')}</Tab>
<Tab restricted={!isAdmin}>Configure Stream</Tab>
</TabBar>
@@ -29,6 +29,7 @@ query AssetQuery($asset_id: ID, $asset_url: String!, $comment_id: ID!, $has_comm
requireEmailConfirmation
}
commentCount
totalCommentCount
comments(limit: 10) {
...commentView
replyCount