summaryrefslogtreecommitdiffstats
path: root/web/react/components/post.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-07-20 08:58:18 -0400
committerJoramWilander <jwawilander@gmail.com>2015-07-20 08:58:18 -0400
commit5e27bb3e618d94075e4fb198a937e24338bb0612 (patch)
tree4f3dab888009c9ef15b63fb5fbf8431c66cf463a /web/react/components/post.jsx
parenta1876cf6cc827743d8687a9113b727ef7190f452 (diff)
downloadchat-5e27bb3e618d94075e4fb198a937e24338bb0612.tar.gz
chat-5e27bb3e618d94075e4fb198a937e24338bb0612.tar.bz2
chat-5e27bb3e618d94075e4fb198a937e24338bb0612.zip
fixes mm-831 post timestamps now update
Diffstat (limited to 'web/react/components/post.jsx')
-rw-r--r--web/react/components/post.jsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index 5457e1cd3..e72a2d001 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -34,6 +34,10 @@ module.exports = React.createClass({
results: null
});
},
+ forceUpdateInfo: function() {
+ this.refs.info.forceUpdate();
+ this.refs.header.forceUpdate();
+ },
getInitialState: function() {
return { };
},
@@ -80,9 +84,9 @@ module.exports = React.createClass({
</div>
: null }
<div className="post__content">
- <PostHeader post={post} sameRoot={this.props.sameRoot} commentCount={commentCount} handleCommentClick={this.handleCommentClick} isLastComment={this.props.isLastComment} />
+ <PostHeader ref="header" post={post} sameRoot={this.props.sameRoot} commentCount={commentCount} handleCommentClick={this.handleCommentClick} isLastComment={this.props.isLastComment} />
<PostBody post={post} sameRoot={this.props.sameRoot} parentPost={parentPost} posts={posts} handleCommentClick={this.handleCommentClick} />
- <PostInfo post={post} sameRoot={this.props.sameRoot} commentCount={commentCount} handleCommentClick={this.handleCommentClick} allowReply="true" />
+ <PostInfo ref="info" post={post} sameRoot={this.props.sameRoot} commentCount={commentCount} handleCommentClick={this.handleCommentClick} allowReply="true" />
</div>
</div>
</div>