Display '(edited)' next to edited polls (#7789)
This commit is contained in:
@@ -400,8 +400,14 @@ export default class MPollBody extends React.Component<IBodyProps, IState> {
|
||||
totalText = _t("Based on %(count)s votes", { count: totalVotes });
|
||||
}
|
||||
|
||||
const editedSpan = (
|
||||
this.props.mxEvent.replacingEvent()
|
||||
? <span className="mx_MPollBody_edited"> ({ _t("edited") })</span>
|
||||
: null
|
||||
);
|
||||
|
||||
return <div className="mx_MPollBody">
|
||||
<h2>{ poll.question.text }</h2>
|
||||
<h2>{ poll.question.text }{ editedSpan }</h2>
|
||||
<div className="mx_MPollBody_allOptions">
|
||||
{
|
||||
poll.answers.map((answer: PollAnswerSubevent) => {
|
||||
|
||||
Reference in New Issue
Block a user