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.
Этот коммит содержится в:
David Meza
2017-07-31 07:24:13 -05:00
коммит произвёл Joram Wilander
родитель 22fa48f455
Коммит f740698dbe
18 изменённых файлов: 183 добавлений и 21 удалений

Просмотреть файл

@@ -82,6 +82,8 @@ export default class UserProfile extends React.Component {
status={this.props.status}
isBusy={this.props.isBusy}
hide={this.hideProfilePopover}
isRHS={this.props.isRHS}
hasMention={this.props.hasMention}
/>
}
>
@@ -99,7 +101,9 @@ UserProfile.defaultProps = {
user: {},
overwriteName: '',
overwriteImage: '',
disablePopover: false
disablePopover: false,
isRHS: false,
hasMention: false
};
UserProfile.propTypes = {
user: PropTypes.object,
@@ -108,5 +112,7 @@ UserProfile.propTypes = {
disablePopover: PropTypes.bool,
displayNameType: PropTypes.string,
status: PropTypes.string,
isBusy: PropTypes.bool
isBusy: PropTypes.bool,
isRHS: PropTypes.bool,
hasMention: PropTypes.bool
};