aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/CurrentIdentity
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/components/CurrentIdentity')
-rw-r--r--webui/src/components/CurrentIdentity/CurrentIdentity.graphql6
-rw-r--r--webui/src/components/CurrentIdentity/CurrentIdentity.tsx12
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>