Added @username and full name to user profile popover (#3765)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
415145d62f
Коммит
ad2c3bdb1d
@@ -79,6 +79,24 @@ export default class UserProfile extends React.Component {
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
let fullname = Utils.getFullName(this.props.user);
|
||||||
|
if (fullname) {
|
||||||
|
dataContent.push(
|
||||||
|
<div
|
||||||
|
data-toggle='tooltip'
|
||||||
|
title={fullname}
|
||||||
|
key='user-popover-fullname'
|
||||||
|
>
|
||||||
|
|
||||||
|
<p
|
||||||
|
className='text-nowrap'
|
||||||
|
>
|
||||||
|
{fullname}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (global.window.mm_config.ShowEmailAddress === 'true' || UserStore.isSystemAdminForCurrentUser() || this.props.user === UserStore.getCurrentUser()) {
|
if (global.window.mm_config.ShowEmailAddress === 'true' || UserStore.isSystemAdminForCurrentUser() || this.props.user === UserStore.getCurrentUser()) {
|
||||||
dataContent.push(
|
dataContent.push(
|
||||||
<div
|
<div
|
||||||
@@ -103,7 +121,7 @@ export default class UserProfile extends React.Component {
|
|||||||
rootClose={true}
|
rootClose={true}
|
||||||
overlay={
|
overlay={
|
||||||
<Popover
|
<Popover
|
||||||
title={name}
|
title={'@' + this.props.user.username}
|
||||||
id='user-profile-popover'
|
id='user-profile-popover'
|
||||||
>
|
>
|
||||||
{dataContent}
|
{dataContent}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user