mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Show comment count when deleting from RHS (#6711)
This commit is contained in:
committed by
Saturnino Abril
parent
3f1fca9463
commit
fafeadf8ae
@@ -28,6 +28,24 @@ import {Link} from 'react-router/es6';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
export default class RhsRootPost extends React.Component {
|
||||
static propTypes = {
|
||||
post: PropTypes.object.isRequired,
|
||||
user: PropTypes.object.isRequired,
|
||||
currentUser: PropTypes.object.isRequired,
|
||||
compactDisplay: PropTypes.bool,
|
||||
useMilitaryTime: PropTypes.bool.isRequired,
|
||||
commentCount: PropTypes.number.isRequired,
|
||||
isFlagged: PropTypes.bool,
|
||||
status: PropTypes.string,
|
||||
previewCollapsed: PropTypes.string,
|
||||
isBusy: PropTypes.bool,
|
||||
getPostList: PropTypes.func.isRequired
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
commentCount: 0
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
@@ -362,6 +380,7 @@ export default class RhsRootPost extends React.Component {
|
||||
post={this.props.post}
|
||||
isFlagged={this.props.isFlagged}
|
||||
handleDropdownOpened={this.handleDropdownOpened}
|
||||
commentCount={this.props.commentCount}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -411,19 +430,3 @@ export default class RhsRootPost extends React.Component {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
RhsRootPost.defaultProps = {
|
||||
commentCount: 0
|
||||
};
|
||||
RhsRootPost.propTypes = {
|
||||
post: PropTypes.object.isRequired,
|
||||
user: PropTypes.object.isRequired,
|
||||
currentUser: PropTypes.object.isRequired,
|
||||
compactDisplay: PropTypes.bool,
|
||||
useMilitaryTime: PropTypes.bool.isRequired,
|
||||
isFlagged: PropTypes.bool,
|
||||
status: PropTypes.string,
|
||||
previewCollapsed: PropTypes.string,
|
||||
isBusy: PropTypes.bool,
|
||||
getPostList: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user