@@ -469,14 +469,7 @@ class MenuBar extends React.Component {
469469 < FormattedMessage { ...ariaMessages . tutorials } />
470470 </ div >
471471 < Divider className = { classNames ( styles . divider ) } />
472- { ( this . props . authorUsername && this . props . authorUsername !== this . props . username ) ? (
473- < AuthorInfo
474- className = { styles . authorInfo }
475- projectTitle = { this . props . projectTitle }
476- userId = { this . props . authorId }
477- username = { this . props . authorUsername }
478- />
479- ) : (
472+ { this . props . canEditTitle ? (
480473 < div className = { classNames ( styles . menuBarItem , styles . growable ) } >
481474 < MenuBarItemTooltip
482475 enable
@@ -488,7 +481,15 @@ class MenuBar extends React.Component {
488481 />
489482 </ MenuBarItemTooltip >
490483 </ div >
491- ) }
484+ ) : ( ( this . props . authorUsername && this . props . authorUsername !== this . props . username ) ? (
485+ < AuthorInfo
486+ className = { styles . authorInfo }
487+ imageUrl = { this . props . authorThumbnailUrl }
488+ projectTitle = { this . props . projectTitle }
489+ userId = { this . props . authorId }
490+ username = { this . props . authorUsername }
491+ />
492+ ) : null ) }
492493 < div className = { classNames ( styles . menuBarItem ) } >
493494 { this . props . canShare ? shareButton : (
494495 this . props . showComingSoon ? (
@@ -688,9 +689,11 @@ class MenuBar extends React.Component {
688689MenuBar . propTypes = {
689690 accountMenuOpen : PropTypes . bool ,
690691 authorId : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . bool ] ) ,
692+ authorThumbnailUrl : PropTypes . string ,
691693 authorUsername : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . bool ] ) ,
692694 canCreateCopy : PropTypes . bool ,
693695 canCreateNew : PropTypes . bool ,
696+ canEditTitle : PropTypes . bool ,
694697 canRemix : PropTypes . bool ,
695698 canSave : PropTypes . bool ,
696699 canShare : PropTypes . bool ,
0 commit comments