File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ ensureConfig([
28
28
subscribe ( APP_CONFIG_INITIALIZED , ( ) => {
29
29
mergeConfig ( {
30
30
AUTHN_MINIMAL_HEADER : ! ! process . env . AUTHN_MINIMAL_HEADER ,
31
+ SHOW_FULLNAME : process . env . SHOW_FULLNAME
31
32
} , 'Header additional config' ) ;
32
33
} ) ;
33
34
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
24
24
< Dropdown . Toggle variant = "outline-primary" >
25
25
< FontAwesomeIcon icon = { faUserCircle } className = "d-md-none" size = "lg" />
26
26
< span data-hj-suppress className = "d-none d-md-inline" >
27
- { username }
27
+ { name }
28
28
</ span >
29
29
</ Dropdown . Toggle >
30
30
< Dropdown . Menu className = "dropdown-menu-right" >
@@ -51,7 +51,7 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
51
51
52
52
AuthenticatedUserDropdown . propTypes = {
53
53
intl : intlShape . isRequired ,
54
- username : PropTypes . string . isRequired ,
54
+ name : PropTypes . string . isRequired ,
55
55
} ;
56
56
57
57
export default injectIntl ( AuthenticatedUserDropdown ) ;
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ const LearningHeader = ({
49
49
< span className = "d-block m-0 font-weight-bold course-title" > { courseTitle } </ span >
50
50
</ div >
51
51
{ showUserDropdown && authenticatedUser && (
52
- < AuthenticatedUserDropdown
53
- username = { authenticatedUser . username }
54
- />
52
+ < AuthenticatedUserDropdown
53
+ name = { getConfig ( ) . SHOW_FULLNAME ? authenticatedUser . name : authenticatedUser . username }
54
+ />
55
55
) }
56
56
{ showUserDropdown && ! authenticatedUser && (
57
57
< AnonymousUserMenu />
You can’t perform that action at this time.
0 commit comments