From 495b0e45235b646e7bb6aedf53004ee359b6887f Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Tue, 30 Jun 2015 08:42:08 -0400 Subject: add default icon for non-user autocompletes --- web/react/components/mention.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'web/react/components') diff --git a/web/react/components/mention.jsx b/web/react/components/mention.jsx index f1292c743..3c33ddf49 100644 --- a/web/react/components/mention.jsx +++ b/web/react/components/mention.jsx @@ -6,10 +6,16 @@ module.exports = React.createClass({ this.props.handleClick(this.props.username); }, render: function() { + var icon; + if (this.props.id != null) { + icon = ; + } else { + icon = ; + } return (
- - @{this.props.username}{this.props.secondary_text} +
{icon}
+
@{this.props.username}{this.props.secondary_text}
); } -- cgit v1.2.3-1-g7c22