mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
Working tags
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user