summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2016-10-25 01:06:03 +0500
committerChristopher Speller <crspeller@gmail.com>2016-10-24 16:06:03 -0400
commit4d9f5173bc81fcaad8040b46b0d9950458412747 (patch)
treee1344cfeb7ab2cadc265a4987c859a125342ea43 /webapp/components/post_view
parent5fdb8223fc23a12945c00a66edbfc6ef299320f9 (diff)
downloadchat-4d9f5173bc81fcaad8040b46b0d9950458412747.tar.gz
chat-4d9f5173bc81fcaad8040b46b0d9950458412747.tar.bz2
chat-4d9f5173bc81fcaad8040b46b0d9950458412747.zip
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.
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r--webapp/components/post_view/components/post.jsx21
1 files changed, 10 insertions, 11 deletions
diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx
index 6a5994469..870d4e1af 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 = (
- <ProfilePicture
- src=''
- status={this.props.status}
- user={this.props.user}
- />
- );
- }
-
if (PostUtils.isSystemMessage(post)) {
profilePic = (
<span
@@ -224,11 +214,20 @@ export default class Post extends React.Component {
}
let compactClass = '';
- const profilePicContainer = (<div className='post__img'>{profilePic}</div>);
if (this.props.compactDisplay) {
compactClass = 'post--compact';
+
+ profilePic = (
+ <ProfilePicture
+ src=''
+ status={this.props.status}
+ user={this.props.user}
+ />
+ );
}
+ const profilePicContainer = (<div className='post__img'>{profilePic}</div>);
+
let dropdownOpenedClass = '';
if (this.state.dropdownOpened) {
dropdownOpenedClass = 'post--hovered';