|
|
|
@ -413,6 +413,7 @@ class TopicDetail extends Component {
|
|
|
|
|
// md
|
|
|
|
|
editor.setValue && editor.setValue('')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const user = this._getUser();
|
|
|
|
|
this.setState({
|
|
|
|
|
comments: addNewComment(comments, _id, content, user)
|
|
|
|
@ -423,6 +424,7 @@ class TopicDetail extends Component {
|
|
|
|
|
memo: newMemo2
|
|
|
|
|
})
|
|
|
|
|
this.refs.editor.showEditor();
|
|
|
|
|
this.refs.editor.close();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -661,11 +663,11 @@ class TopicDetail extends Component {
|
|
|
|
|
{/* onClick={ this.createNewComment }
|
|
|
|
|
enableReplyTo={true}
|
|
|
|
|
*/}
|
|
|
|
|
<div className="padding30 bor-bottom-greyE memoReplies commentsDelegateParent comments_hideSecondReplyUserHeader"
|
|
|
|
|
style={{ display: (comments && !!comments.length) ? 'block' : 'none', paddingTop: '10px' }}>
|
|
|
|
|
<div className="padding20 memoReplies commentsDelegateParent comments_hideSecondReplyUserHeader"
|
|
|
|
|
style={{ display: (comments && !!comments.length) ? 'block' : 'none', paddingBottom: '0px' }}>
|
|
|
|
|
<div className="replies_count">
|
|
|
|
|
<span className="labal">全部回复</span>
|
|
|
|
|
<span className="count">{memo.total_replies_count}</span>
|
|
|
|
|
<span className="labal font-16">全部回复</span>
|
|
|
|
|
<span className="count font-16">({memo.total_replies_count})</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<Comments comments={comments} user={current_user}
|
|
|
|
|