From e55761b2f8bdbb92ff77a7780bdd3b894d2a59ce Mon Sep 17 00:00:00 2001
From: Lena <lena.becker-3@mni.thm.de>
Date: Mon, 8 Mar 2021 17:39:23 +0100
Subject: Add fields, id as tooltip, and display none if value not set #12

---
 webui/src/components/CurrentIdentity/CurrentIdentity.tsx | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

(limited to 'webui/src/components/CurrentIdentity/CurrentIdentity.tsx')

diff --git a/webui/src/components/CurrentIdentity/CurrentIdentity.tsx b/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
index 68e65a99..2921e2bf 100644
--- a/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
+++ b/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
@@ -71,9 +71,15 @@ const CurrentIdentity = () => {
             <Paper>
               <ClickAwayListener onClickAway={handleClose}>
                 <MenuList autoFocusItem={open} id="menu-list-grow">
-                  <MenuItem>Display Name: {user.displayName}</MenuItem>
-                  <MenuItem>Human Id: {user.humanId}</MenuItem>
-                  <MenuItem>Email: {user.email}</MenuItem>
+                  <MenuItem>Name: {user.name ? user.name : 'none'}</MenuItem>
+                  <MenuItem title={user.id}>
+                    Id: {user.humanId ? user.humanId : 'none'}
+                  </MenuItem>
+                  <MenuItem>Email: {user.email ? user.email : 'none'}</MenuItem>
+                  <MenuItem>Login: {user.login ? user.login : 'none'}</MenuItem>
+                  <MenuItem>
+                    Protected: {user.isProtected ? user.login : 'not set'}
+                  </MenuItem>
                 </MenuList>
               </ClickAwayListener>
             </Paper>
-- 
cgit 

