From 4d9f5173bc81fcaad8040b46b0d9950458412747 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Tue, 25 Oct 2016 01:06:03 +0500 Subject: [PATCH] PLT-4293 - Adding status indicator to RHS thread (#4292) * PLT-4293 - Adding status indicator to RHS thread * Coming conditional * Changing const position * Uber UI changes * Revert "Uber UI changes" This reverts commit 6b756c38ccde7da6b8180e119a00beb92b4b8057. --- .../components/post_view/components/post.jsx | 21 +++++++++---------- webapp/components/rhs_comment.jsx | 14 ++++++++++--- webapp/components/rhs_root_post.jsx | 11 ++++++++-- webapp/components/search_results_item.jsx | 3 +-- 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx index 6a5994469c..870d4e1af0 100644 --- a/webapp/components/post_view/components/post.jsx +++ b/webapp/components/post_view/components/post.jsx @@ -199,16 +199,6 @@ export default class Post extends React.Component { /> ); - if (this.props.compactDisplay) { - profilePic = ( - - ); - } - if (PostUtils.isSystemMessage(post)) { profilePic = ( {profilePic}); if (this.props.compactDisplay) { compactClass = 'post--compact'; + + profilePic = ( + + ); } + const profilePicContainer = (
{profilePic}
); + let dropdownOpenedClass = ''; if (this.state.dropdownOpened) { dropdownOpenedClass = 'post--hovered'; diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index c22e0c4dcb..c8fd698b02 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -276,7 +276,7 @@ export default class RhsComment extends React.Component { ); } - const profilePic = ( + let profilePic = ( {profilePic}); if (this.props.compactDisplay) { compactClass = 'post--compact'; - profilePicContainer = ''; + + profilePic = ( + + ); } + const profilePicContainer = (
{profilePic}
); + let fileAttachment = null; if (post.file_ids && post.file_ids.length > 0) { fileAttachment = ( diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index 27446c85a5..b8aeeed2d1 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -302,12 +302,19 @@ export default class RhsRootPost extends React.Component { } let compactClass = ''; - let profilePicContainer = (
{profilePic}
); if (this.props.compactDisplay) { compactClass = 'post--compact'; - profilePicContainer = ''; + + profilePic = ( + + ); } + const profilePicContainer = (
{profilePic}
); const messageWrapper = ; let flag; diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx index a03bb22ad8..698d68bbaf 100644 --- a/webapp/components/search_results_item.jsx +++ b/webapp/components/search_results_item.jsx @@ -106,10 +106,9 @@ export default class SearchResultsItem extends React.Component { ); let compactClass = ''; - let profilePicContainer = (
{profilePic}
); + const profilePicContainer = (
{profilePic}
); if (this.props.compactDisplay) { compactClass = 'post--compact'; - profilePicContainer = ''; } let flag;