summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_info.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/post_info.jsx')
-rw-r--r--web/react/components/post_info.jsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx
index 2bd1a57f7..73b47024c 100644
--- a/web/react/components/post_info.jsx
+++ b/web/react/components/post_info.jsx
@@ -24,8 +24,14 @@ export default class PostInfo extends React.Component {
}
createReplyLink() {
if (this.props.allowReply === 'true') {
+ var hideReply = '';
+
+ if (this.props.commentCount >= 1) {
+ hideReply = ' post__reply--hide';
+ }
+
return (
- <div className='post__reply'>
+ <div className={'post__reply' + hideReply}>
<a
onClick={this.props.handleCommentClick}
href='#'