mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Merge pull request #447 from coralproject/total-counts
show the total comment count instead of the parent count
This commit is contained in:
@@ -120,7 +120,7 @@ class Embed extends Component {
|
|||||||
<div style={expandForLogin}>
|
<div style={expandForLogin}>
|
||||||
<div className="commentStream">
|
<div className="commentStream">
|
||||||
<TabBar onChange={this.changeTab} activeTab={activeTab}>
|
<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>{lang.t('MY_COMMENTS')}</Tab>
|
||||||
<Tab restricted={!isAdmin}>Configure Stream</Tab>
|
<Tab restricted={!isAdmin}>Configure Stream</Tab>
|
||||||
</TabBar>
|
</TabBar>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ query AssetQuery($asset_id: ID, $asset_url: String!, $comment_id: ID!, $has_comm
|
|||||||
requireEmailConfirmation
|
requireEmailConfirmation
|
||||||
}
|
}
|
||||||
commentCount
|
commentCount
|
||||||
|
totalCommentCount
|
||||||
comments(limit: 10) {
|
comments(limit: 10) {
|
||||||
...commentView
|
...commentView
|
||||||
replyCount
|
replyCount
|
||||||
|
|||||||
Reference in New Issue
Block a user