From 6a5cdd5cdf09317ce259dd146fc4f1cb76d8b9b6 Mon Sep 17 00:00:00 2001 From: Debanshu Kundu Date: Mon, 19 Dec 2016 19:35:39 +0530 Subject: PLT-135 Showing "(Edited)" indicator if a message has been edited. (#4764) --- .../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