Addressing errors with replies in e2e.

This commit is contained in:
David Jay
2017-01-27 17:29:23 -05:00
parent 1da61784b4
commit b674ff45c0
5 changed files with 19 additions and 24 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class Comment extends React.Component {
return (
<div
className="comment"
className={parentId ? 'reply' : 'comment'}
id={`c_${comment.id}`}
style={{marginLeft: depth * 30}}>
<hr aria-hidden={true} />
@@ -2,6 +2,7 @@ fragment commentView on Comment {
id
body
created_at
status
user {
id
name: displayName
@@ -75,8 +75,6 @@ class CommentBox extends Component {
} else if (postedComment.status === 'PREMOD') {
addNotification('success', lang.t('comment-post-notif-premod'));
} else {
// appendItemArray(parent_id || id, related, commentId, !parent_id, parent_type);
addNotification('success', 'Your comment has been posted.');
}
@@ -1,5 +1,5 @@
import React from 'react';
const name = 'coral-plugin-replies';
const name = 'coral-plugin-content';
const Content = ({body, styles}) => {
const textbreaks = body.split('\n');