From 5596a6b37c440522176fdc05217161d7de7e169c Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 23 Jul 2015 12:45:08 -0400 Subject: added client predictive commenting --- web/react/components/post_info.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'web/react/components/post_info.jsx') diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx index 8eaaf4e8c..93d028e18 100644 --- a/web/react/components/post_info.jsx +++ b/web/react/components/post_info.jsx @@ -22,16 +22,19 @@ module.exports = React.createClass({ var comments = ""; var lastCommentClass = this.props.isLastComment ? " comment-icon__container__show" : " comment-icon__container__hide"; - if (this.props.commentCount >= 1) { + if (this.props.commentCount >= 1 && !post.did_fail && !post.is_loading) { comments = {this.props.commentCount}; } + var show_dropdown = isOwner || (this.props.allowReply === "true" && type != "Comment"); + if (post.did_fail || post.is_loading) show_dropdown = false; + return (