showHiddenButton={true}

dev_hjm
hjm 6 years ago
parent d77d873787
commit 8960cc6216

@ -15,6 +15,7 @@ class CommentContainer extends Component {
<Comments
{...this.props}
showHiddenButton={true}
>
</Comments>

@ -58,6 +58,9 @@ const _origin = window.location.origin;
comment_count_without_reply
currentPage
comments
showRewardButton 是否显示奖励按钮
showHiddenButton 是否显示隐藏按钮
接口
deleteComment 删除
@ -360,7 +363,8 @@ class Comments extends Component {
</a>
:""}
{ (this.props.onlySuperAdminCouldHide && item.isSuperAdmin || !this.props.onlySuperAdminCouldHide && item.admin === true) ?
{ this.props.showHiddenButton == true
&& (this.props.onlySuperAdminCouldHide && item.isSuperAdmin || !this.props.onlySuperAdminCouldHide && item.admin === true) ?
<Tooltip title={ item.hidden ? "取消隐藏" : "隐藏评论" } disableFocusListener={true}>
<a href="javascript:void(0);" className="color-grey-8 fl mt1" onClick={() => this.onCommentBtnClick(item, '', item.hidden ? 'hiddenCancel' : 'hidden') }>
<i className={` ${item.hidden ? 'iconfont icon-yincangbiyan' : 'fa fa-eye'} mr5`}></i>

@ -50,6 +50,7 @@ class TPMShixunDiscuss extends Component {
<Comments
{...this.props}
user={user}
showHiddenButton={true}
></Comments>
// onPaginationChange={this.onPaginationChange}
// <ShixunDiscuss

Loading…
Cancel
Save