close post control button after reacting to a post (#7110)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
2dbe30cba3
Коммит
dc884983e6
@@ -125,6 +125,7 @@ export default class PostInfo extends React.PureComponent {
|
||||
const emojiName = emoji.name || emoji.aliases[0];
|
||||
this.props.actions.addReaction(this.props.post.id, emojiName);
|
||||
emitEmojiPosted(emojiName);
|
||||
this.props.handleDropdownOpened(false);
|
||||
}
|
||||
|
||||
getDotMenu = () => {
|
||||
|
||||
@@ -166,6 +166,7 @@ export default class RhsComment extends React.Component {
|
||||
this.setState({showEmojiPicker: false});
|
||||
const emojiName = emoji.name || emoji.aliases[0];
|
||||
addReaction(this.props.post.channel_id, this.props.post.id, emojiName);
|
||||
this.handleDropdownOpened(false);
|
||||
}
|
||||
|
||||
getClassName = (post, isSystemMessage) => {
|
||||
|
||||
@@ -159,6 +159,7 @@ export default class RhsRootPost extends React.Component {
|
||||
this.setState({showEmojiPicker: false});
|
||||
const emojiName = emoji.name || emoji.aliases[0];
|
||||
addReaction(this.props.post.channel_id, this.props.post.id, emojiName);
|
||||
this.handleDropdownOpened(false);
|
||||
}
|
||||
|
||||
getClassName = (post, isSystemMessage) => {
|
||||
|
||||
Ссылка в новой задаче
Block a user