Displaying DontAgree actions as flags.

This commit is contained in:
David Jay
2017-02-21 14:55:00 -05:00
parent 1d8ce1ae34
commit 3377aa3da2
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -99,6 +99,7 @@ class Comment extends React.Component {
const like = getActionSummary('LikeActionSummary', comment);
const flag = getActionSummary('FlagActionSummary', comment);
const dontagree = getActionSummary('DontAgreeActionSummary', comment);
return (
<div
@@ -130,7 +131,7 @@ class Comment extends React.Component {
<div className="commentActionsRight">
<PermalinkButton articleURL={asset.url} commentId={comment.id} />
<FlagComment
flag={flag}
flag={flag && flag.current_user ? flag : dontagree}
id={comment.id}
author_id={comment.user.id}
postFlag={postFlag}
-1
View File
@@ -76,7 +76,6 @@ class FlagButton extends Component {
postDontAgree(action)
.then(({data}) => {
if (itemType === 'COMMENTS') {
console.log('data', data);
this.setState({localPost: data.createDontAgree.dontagree.id});
}
});