Working tags

This commit is contained in:
Belen Curcio
2017-05-17 09:01:41 -03:00
parent c59346eb0a
commit 793f634959
5 changed files with 10 additions and 8 deletions
@@ -25,7 +25,7 @@ import {getActionSummary, iPerformedThisAction} from 'coral-framework/utils';
import {getEditableUntilDate} from './util';
import styles from './Comment.css';
const isStaff = tags => !tags.every(t => t.id !== 'STAFF');
const isStaff = tags => !!tags.filter(i => i.tag.name === 'STAFF').length;
// hold actions links (e.g. Reply) along the comment footer
const ActionButton = ({children}) => {
@@ -30,10 +30,6 @@ export default withFragments({
tags {
tag {
name
created_at
}
assigned_by {
id
}
}
user {
@@ -6,7 +6,9 @@ fragment commentView on Comment {
created_at
status
tags {
id
tag {
name
}
}
user {
id
@@ -3,7 +3,9 @@ mutation AddCommentTag ($id: ID!, $tag: String!) {
comment {
id
tags {
id
tag {
name
}
}
}
errors {
@@ -3,7 +3,9 @@ mutation RemoveCommentTag ($id: ID!, $tag: String!) {
comment {
id
tags {
id
tag {
name
}
}
}
errors {