aboutsummaryrefslogtreecommitdiffstats
path: root/webui
diff options
context:
space:
mode:
authorLena <lena.becker-3@mni.thm.de>2021-03-19 00:11:05 +0100
committerSascha <GlancingMind@outlook.com>2021-04-13 19:07:57 +0200
commit7e368421d8329fadc748873e86e6bae61d99e6e3 (patch)
tree5a4d95ea150a491e0d947ad11c8afa68d89dc76c /webui
parentba893ee5539c29b3e760ea994208afaa70913512 (diff)
downloadgit-bug-7e368421d8329fadc748873e86e6bae61d99e6e3.tar.gz
Remove lock icon if not protected #12
Diffstat (limited to 'webui')
-rw-r--r--webui/src/components/CurrentIdentity/CurrentIdentity.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/webui/src/components/CurrentIdentity/CurrentIdentity.tsx b/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
index b68b84e5..f37cc0e4 100644
--- a/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
+++ b/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
@@ -66,7 +66,10 @@ const CurrentIdentity = () => {
{user.displayName.charAt(0).toUpperCase()}
</Avatar>
<div className={classes.displayName}>{user.displayName}</div>
- <LockIcon color="secondary" className={user.isProtected ? '' : ''} />
+ <LockIcon
+ color="secondary"
+ className={user.isProtected ? '' : classes.hidden}
+ />
</Button>
<Popper
open={open}