From 284ee12b2270d7ed86313be613b791d4a30ae46c Mon Sep 17 00:00:00 2001
From: David Lu <david.lu@hotmail.com>
Date: Wed, 13 Jul 2016 13:02:46 -0400
Subject: added username to system console users list (#3566)

---
 webapp/components/admin_console/user_item.jsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'webapp/components/admin_console/user_item.jsx')

diff --git a/webapp/components/admin_console/user_item.jsx b/webapp/components/admin_console/user_item.jsx
index e6c4f637c..79dbd5639 100644
--- a/webapp/components/admin_console/user_item.jsx
+++ b/webapp/components/admin_console/user_item.jsx
@@ -505,6 +505,11 @@ export default class UserItem extends React.Component {
             );
         }
 
+        let displayedName = Utils.getDisplayName(user);
+        if (displayedName !== user.username) {
+            displayedName += ' (@' + user.username + ')';
+        }
+
         return (
             <div className='more-modal__row'>
                 <img
@@ -514,7 +519,7 @@ export default class UserItem extends React.Component {
                     width='36'
                 />
                 <div className='more-modal__details'>
-                    <div className='more-modal__name'>{Utils.getDisplayName(user)}</div>
+                    <div className='more-modal__name'>{displayedName}</div>
                     <div className='more-modal__description'>
                         <FormattedHTMLMessage
                             id='admin.user_item.emailTitle'
-- 
cgit v1.2.3-1-g7c22

