diff options
author | David Lu <david.lu@hotmail.com> | 2016-05-27 08:38:35 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-27 08:38:35 -0700 |
commit | 1736947f0e842074492d3b8a54a2090b1aeab67f (patch) | |
tree | 6e25a1a1899c3db97624c65e81ef03b0599dc605 /webapp/components/rhs_comment.jsx | |
parent | 97a4310610310f5f62d377bd8d68902c0ccc92cd (diff) | |
download | chat-1736947f0e842074492d3b8a54a2090b1aeab67f.tar.gz chat-1736947f0e842074492d3b8a54a2090b1aeab67f.tar.bz2 chat-1736947f0e842074492d3b8a54a2090b1aeab67f.zip |
Added BOT in RHS (#3136)
Changed BOT to constant
Diffstat (limited to 'webapp/components/rhs_comment.jsx')
-rw-r--r-- | webapp/components/rhs_comment.jsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 17f83170d..a771803b8 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -151,6 +151,11 @@ export default class RhsComment extends React.Component { var timestamp = this.props.currentUser.update_at; + let botIndicator; + + if (post.props && post.props.from_webhook) { + botIndicator = <li className='col col__name bot-indicator'>{Constants.BOT_NAME}</li>; + } let loading; let postClass = ''; let message = ( @@ -206,9 +211,10 @@ export default class RhsComment extends React.Component { </div> <div> <ul className='post__header'> - <li className='col__name'> + <li className='col col__name'> <strong><UserProfile user={this.props.user}/></strong> </li> + {botIndicator} <li className='col'> <time className='post__time'> <FormattedDate |