diff options
author | David Meza <dmeza@users.noreply.github.com> | 2017-07-31 07:24:13 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-07-31 08:24:13 -0400 |
commit | f740698dbe06816921d2a20eea876c9ca7b515ed (patch) | |
tree | df5c9f4f076c6294da8246275a97133f59b5a82f /webapp/components/rhs_root_post.jsx | |
parent | 22fa48f455f15be7a7528501431841a2c7d84c85 (diff) | |
download | chat-f740698dbe06816921d2a20eea876c9ca7b515ed.tar.gz chat-f740698dbe06816921d2a20eea876c9ca7b515ed.tar.bz2 chat-f740698dbe06816921d2a20eea876c9ca7b515ed.zip |
PLT-6486 Add an `@username` button to the profile popover, that puts the username in the post when clicked (#6349)
* PLT-6486 Add an `@username` button to the profile popover, that puts the username in the post when clicked
* PLT-6486 Display `@username` mention on the right text area on center or RHS.
* Disable @mentions from profile popover on searches, mentions and pinned posts. Fix js errors.
* Control undefined post in SearchStore that causes an exception.
Diffstat (limited to 'webapp/components/rhs_root_post.jsx')
-rw-r--r-- | webapp/components/rhs_root_post.jsx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index 1a28dc008..af0c8c0d5 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -256,6 +256,8 @@ export default class RhsRootPost extends React.Component { user={user} status={this.props.status} isBusy={this.props.isBusy} + isRHS={true} + hasMention={true} /> ); let botIndicator; @@ -308,6 +310,8 @@ export default class RhsRootPost extends React.Component { height='36' user={this.props.user} isBusy={this.props.isBusy} + isRHS={true} + hasMention={true} /> ); @@ -344,6 +348,8 @@ export default class RhsRootPost extends React.Component { status={status} user={this.props.user} isBusy={this.props.isBusy} + isRHS={true} + hasMention={true} /> ); } @@ -417,7 +423,13 @@ export default class RhsRootPost extends React.Component { <div className={postClass}> <PostBodyAdditionalContent post={post} - message={<PostMessageContainer post={post}/>} + message={ + <PostMessageContainer + post={post} + isRHS={true} + hasMention={true} + /> + } previewCollapsed={this.props.previewCollapsed} /> </div> |