From cc40ca1ac01063441c35f8e5b57f813561a0b739 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Wed, 19 Aug 2015 09:52:03 -0400 Subject: Added a message deleted indicator when a post is deleted to let the user know what's happening. --- web/react/components/post_info.jsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/react/components/post_info.jsx') diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx index c5b015cb9..c96a04c7c 100644 --- a/web/react/components/post_info.jsx +++ b/web/react/components/post_info.jsx @@ -22,6 +22,10 @@ export default class PostInfo extends React.Component { var isOwner = UserStore.getCurrentId() === post.user_id; var isAdmin = UserStore.getCurrentUser().roles.indexOf('admin') > -1; + if (post.state === Constants.POST_FAILED || post.state === Constants.POST_LOADING || post.state === Constants.POST_DELETED) { + return ''; + } + var type = 'Post'; if (post.root_id && post.root_id.length > 0) { type = 'Comment'; -- cgit v1.2.3-1-g7c22