Skip to content

Commit c90f035

Browse files
committed
Comments count label displays comment again when clicked
1 parent 66899eb commit c90f035

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/mixins/CommentMixin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ var CommentMixin = {
104104
{options.op && ' | on: '}
105105
{options.op && <Link to={`/${this.state.op.type}/${this.state.op.id}`}>{this.state.op.title}</Link>}
106106
{comment.dead && ' | [dead]'}
107-
{options.childCounts && ' | (' + options.childCounts.children + ' child' + pluralise(options.childCounts.children, ',ren')}
107+
{options.childCounts && <span onClick={this.onCommentClick}>
108+
{options.childCounts && ' | (' + options.childCounts.children + ' child' + pluralise(options.childCounts.children, ',ren')}
108109
{options.childCounts && options.childCounts.newComments > 0 && ', '}
109110
{options.childCounts && options.childCounts.newComments > 0 && <em>{options.childCounts.newComments} new</em>}
110-
{options.childCounts && ')'}
111+
{options.childCounts && ')'}
112+
</span>}
111113
</div>
112114
},
113115

0 commit comments

Comments
 (0)