|
@@ -74,12 +74,6 @@ class PageComments extends React.Component {
|
|
|
|
|
|
|
|
deleteComment() {
|
|
deleteComment() {
|
|
|
const comment = this.state.commentToDelete;
|
|
const comment = this.state.commentToDelete;
|
|
|
- const comments = this.props.commentContainer.state.comments;
|
|
|
|
|
- comments.forEach((reply) => {
|
|
|
|
|
- if (reply.replyTo === comment._id) {
|
|
|
|
|
- this.props.commentContainer.deleteComment(reply);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
this.props.commentContainer.deleteComment(comment)
|
|
this.props.commentContainer.deleteComment(comment)
|
|
|
.then(() => {
|
|
.then(() => {
|
|
@@ -161,10 +155,10 @@ class PageComments extends React.Component {
|
|
|
<div className="col-xs-offset-6 col-sm-offset-6 col-md-offset-6 col-lg-offset-6">
|
|
<div className="col-xs-offset-6 col-sm-offset-6 col-md-offset-6 col-lg-offset-6">
|
|
|
<Button
|
|
<Button
|
|
|
bsStyle="primary"
|
|
bsStyle="primary"
|
|
|
- className="fcbtn btn btn-sm btn-primary btn-outline btn-rounded btn-1b"
|
|
|
|
|
|
|
+ className="fcbtn btn btn-outline btn-rounded btn-xxs"
|
|
|
onClick={() => { return this.replyButtonClickedHandler(commentId) }}
|
|
onClick={() => { return this.replyButtonClickedHandler(commentId) }}
|
|
|
>
|
|
>
|
|
|
- <i className="icon-bubble"></i> Reply
|
|
|
|
|
|
|
+ Reply <i className="fa fa-mail-reply"></i>
|
|
|
</Button>
|
|
</Button>
|
|
|
</div>
|
|
</div>
|
|
|
)
|
|
)
|