From ad2c3bdb1de4b1476bad866ccb1e9287e49845b9 Mon Sep 17 00:00:00 2001 From: David Lu Date: Tue, 9 Aug 2016 01:41:05 -0400 Subject: Added @username and full name to user profile popover (#3765) --- webapp/components/user_profile.jsx | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/webapp/components/user_profile.jsx b/webapp/components/user_profile.jsx index c7020fed9..bc542165a 100644 --- a/webapp/components/user_profile.jsx +++ b/webapp/components/user_profile.jsx @@ -79,6 +79,24 @@ export default class UserProfile extends React.Component { /> ); + let fullname = Utils.getFullName(this.props.user); + if (fullname) { + dataContent.push( +
+ +

+ {fullname} +

+
+ ); + } + if (global.window.mm_config.ShowEmailAddress === 'true' || UserStore.isSystemAdminForCurrentUser() || this.props.user === UserStore.getCurrentUser()) { dataContent.push(
{dataContent} -- cgit v1.2.3-1-g7c22