Show comment count when deleting from RHS (#6711)
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
3f1fca9463
Коммит
fafeadf8ae
@@ -28,6 +28,24 @@ import {Link} from 'react-router/es6';
|
|||||||
import {FormattedMessage} from 'react-intl';
|
import {FormattedMessage} from 'react-intl';
|
||||||
|
|
||||||
export default class RhsRootPost extends React.Component {
|
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) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
@@ -362,6 +380,7 @@ export default class RhsRootPost extends React.Component {
|
|||||||
post={this.props.post}
|
post={this.props.post}
|
||||||
isFlagged={this.props.isFlagged}
|
isFlagged={this.props.isFlagged}
|
||||||
handleDropdownOpened={this.handleDropdownOpened}
|
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
|
|
||||||
};
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user