Skip to content

Commit

Permalink
LoginName in user menu. (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
kavics authored Oct 11, 2023
1 parent e698fe7 commit fc0f3bf
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apps/sensenet/src/components/appbar/desktop-nav-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,22 @@ export const DesktopNavMenu: FunctionComponent = () => {
style: {
overflow: 'hidden',
textOverflow: 'ellipsis',
marginLeft: '30px',
marginLeft: '20px',
color: theme.palette.type === 'light' ? globals.light.textColor : globals.dark.textColor,
},
title: currentUser.DisplayName || currentUser.Name,
title: `Full-name: ${currentUser.DisplayName}` || currentUser.Name,
}}
secondaryTypographyProps={{
style: {
overflow: 'hidden',
textOverflow: 'ellipsis',
marginLeft: '20px',
color: theme.palette.type === 'light' ? globals.light.textColor : globals.dark.textColor,
},
title: `Login-name: ${currentUser.LoginName}` || currentUser.Name,
}}
primary={`${currentUser.DisplayName || currentUser.Name}`}
secondary={`${currentUser.LoginName || currentUser.Name}`}
/>
</MenuItem>
<MenuItem className={classes.userMenuItem}>
Expand Down

0 comments on commit fc0f3bf

Please sign in to comment.