From 739f32272ff4079b5638d6293a28ed8ffbbb926e Mon Sep 17 00:00:00 2001 From: Debanshu Kundu Date: Thu, 12 Jan 2017 21:17:29 +0530 Subject: PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4923) --- .../components/post_message_container.jsx | 2 +- .../post_view/components/post_message_view.jsx | 38 ++++++++++++++++++---- 2 files changed, 32 insertions(+), 8 deletions(-) (limited to 'webapp/components/post_view') diff --git a/webapp/components/post_view/components/post_message_container.jsx b/webapp/components/post_view/components/post_message_container.jsx index 2d17e74c4..4e27cd29a 100644 --- a/webapp/components/post_view/components/post_message_container.jsx +++ b/webapp/components/post_view/components/post_message_container.jsx @@ -89,7 +89,7 @@ export default class PostMessageContainer extends React.Component { return ( + + : + '' + ); + } + render() { if (!this.props.enableFormatting) { - return {this.props.message}; + return ( + + {this.props.post.message} +   + {this.editedIndicator()} + + ); } const options = Object.assign({}, this.props.options, { @@ -62,10 +83,13 @@ export default class PostMessageView extends React.Component { }); return ( - +
+ + {this.editedIndicator()} +
); } } -- cgit v1.2.3-1-g7c22