diff options
author | Lena <lena.becker-3@mni.thm.de> | 2021-03-08 17:39:23 +0100 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-04-13 19:07:57 +0200 |
commit | e55761b2f8bdbb92ff77a7780bdd3b894d2a59ce (patch) | |
tree | 8f0f6cc80720ff2932e4b2bad0d5679b0f18cc22 /webui/src | |
parent | cef44db8c73c27c1da8dc5e0a9f2e47e0c096075 (diff) | |
download | git-bug-e55761b2f8bdbb92ff77a7780bdd3b894d2a59ce.tar.gz |
Add fields, id as tooltip, and display none if value not set #12
Diffstat (limited to 'webui/src')
-rw-r--r-- | webui/src/components/CurrentIdentity/CurrentIdentity.graphql | 6 | ||||
-rw-r--r-- | webui/src/components/CurrentIdentity/CurrentIdentity.tsx | 12 |
2 files changed, 14 insertions, 4 deletions
diff --git a/webui/src/components/CurrentIdentity/CurrentIdentity.graphql b/webui/src/components/CurrentIdentity/CurrentIdentity.graphql index 9af786b7..5a1786f7 100644 --- a/webui/src/components/CurrentIdentity/CurrentIdentity.graphql +++ b/webui/src/components/CurrentIdentity/CurrentIdentity.graphql @@ -1,10 +1,14 @@ query CurrentIdentity { repository { userIdentity { + id humanId - email displayName + email + name avatarUrl + isProtected + login } } } 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> |