|
|
|
@ -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>
|
|
|
|
|