From 1736947f0e842074492d3b8a54a2090b1aeab67f Mon Sep 17 00:00:00 2001 From: David Lu Date: Fri, 27 May 2016 08:38:35 -0700 Subject: [PATCH] Added BOT in RHS (#3136) Changed BOT to constant --- webapp/components/post_header.jsx | 2 +- webapp/components/rhs_comment.jsx | 8 +++++++- webapp/components/search_results_item.jsx | 9 ++++++++- webapp/utils/constants.jsx | 3 ++- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/webapp/components/post_header.jsx b/webapp/components/post_header.jsx index 2b139471db..6fae092e55 100644 --- a/webapp/components/post_header.jsx +++ b/webapp/components/post_header.jsx @@ -32,7 +32,7 @@ export default class PostHeader extends React.Component { ); } - botIndicator =
  • {'BOT'}
  • ; + botIndicator =
  • {Constants.BOT_NAME}
  • ; } else if (Utils.isSystemMessage(post)) { userProfile = ( {Constants.BOT_NAME}; + } let loading; let postClass = ''; let message = ( @@ -206,9 +211,10 @@ export default class RhsComment extends React.Component {
      -
    • +
    • + {botIndicator}
    • ; + } + return (
      @@ -94,13 +100,14 @@ export default class SearchResultsItem extends React.Component {
        -
      • +
      • + {botIndicator}