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
@@ -36,11 +36,15 @@ export default class Textbox extends React.Component {
|
||||
supportsCommands: PropTypes.bool.isRequired,
|
||||
handlePostError: PropTypes.func,
|
||||
suggestionListStyle: PropTypes.string,
|
||||
emojiEnabled: PropTypes.bool
|
||||
emojiEnabled: PropTypes.bool,
|
||||
isRHS: PropTypes.bool,
|
||||
popoverMentionKeyClick: React.PropTypes.bool
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
supportsCommands: true
|
||||
supportsCommands: true,
|
||||
isRHS: false,
|
||||
popoverMentionKeyClick: false
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
@@ -296,6 +300,8 @@ export default class Textbox extends React.Component {
|
||||
channelId={this.props.channelId}
|
||||
value={this.props.value}
|
||||
renderDividers={true}
|
||||
isRHS={this.props.isRHS}
|
||||
popoverMentionKeyClick={this.props.popoverMentionKeyClick}
|
||||
/>
|
||||
<div
|
||||
ref='preview'
|
||||
|
||||
Ссылка в новой задаче
Block a user