Parses ticket comments to create links for mentioned tickets

This commit is contained in:
Maxi Redigonda 2018-11-17 12:30:52 -03:00
parent b56ff24a7d
commit e1dffaef16
1 changed files with 3 additions and 0 deletions

View File

@ -207,6 +207,9 @@ class TicketViewer extends React.Component {
}
renderTicketEvent(options, index) {
if (this.props.userStaff) {
options.content = MentionsParser.parse(options.content);
}
return (
<TicketEvent {...options} author={(!_.isEmpty(options.author)) ? options.author : this.props.ticket.author} key={index} />
);