PLT-6486 Add an @username button to the profile popover, that puts the username in the post when clicked (#6349)
* PLT-6486 Add an `@username` button to the profile popover, that puts the username in the post when clicked * PLT-6486 Display `@username` mention on the right text area on center or RHS. * Disable @mentions from profile popover on searches, mentions and pinned posts. Fix js errors. * Control undefined post in SearchStore that causes an exception.
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
22fa48f455
Коммит
f740698dbe
@@ -256,6 +256,8 @@ export default class RhsRootPost extends React.Component {
|
||||
user={user}
|
||||
status={this.props.status}
|
||||
isBusy={this.props.isBusy}
|
||||
isRHS={true}
|
||||
hasMention={true}
|
||||
/>
|
||||
);
|
||||
let botIndicator;
|
||||
@@ -308,6 +310,8 @@ export default class RhsRootPost extends React.Component {
|
||||
height='36'
|
||||
user={this.props.user}
|
||||
isBusy={this.props.isBusy}
|
||||
isRHS={true}
|
||||
hasMention={true}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -344,6 +348,8 @@ export default class RhsRootPost extends React.Component {
|
||||
status={status}
|
||||
user={this.props.user}
|
||||
isBusy={this.props.isBusy}
|
||||
isRHS={true}
|
||||
hasMention={true}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -417,7 +423,13 @@ export default class RhsRootPost extends React.Component {
|
||||
<div className={postClass}>
|
||||
<PostBodyAdditionalContent
|
||||
post={post}
|
||||
message={<PostMessageContainer post={post}/>}
|
||||
message={
|
||||
<PostMessageContainer
|
||||
post={post}
|
||||
isRHS={true}
|
||||
hasMention={true}
|
||||
/>
|
||||
}
|
||||
previewCollapsed={this.props.previewCollapsed}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Ссылка в новой задаче
Block a user