From 99fc4b0988e941242732feff428468c6df69fe50 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Wed, 28 Jun 2017 06:44:02 +0100 Subject: [PATCH] PLT-6900: Hide DotMenu container when DotMenu empty. (#6770) --- .../post_view/post_info/post_info.jsx | 2 +- webapp/utils/post_utils.jsx | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/webapp/components/post_view/post_info/post_info.jsx b/webapp/components/post_view/post_info/post_info.jsx index f037bf03bf..c07a58bc7a 100644 --- a/webapp/components/post_view/post_info/post_info.jsx +++ b/webapp/components/post_view/post_info/post_info.jsx @@ -192,7 +192,7 @@ export default class PostInfo extends React.PureComponent { /> ); - if (dotMenu) { + if (PostUtils.shouldShowDotMenu(this.props.post)) { options = (