From 2a78ce2bf196808e91618873cf03bfcde1f063bb Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 1 Aug 2017 17:18:52 +0700 Subject: [PATCH] Restore flagged queue --- client/coral-admin/src/graphql/utils.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/coral-admin/src/graphql/utils.js b/client/coral-admin/src/graphql/utils.js index a30ad1745..94161af00 100644 --- a/client/coral-admin/src/graphql/utils.js +++ b/client/coral-admin/src/graphql/utils.js @@ -76,11 +76,13 @@ function getCommentQueues(comment) { else if (comment.status === 'PREMOD') { queues.push('premod'); queues.push('new'); - } + } else if (comment.status === 'NONE') { queues.push('new'); } - else if ( + + // Additionally populate the `flagged` queue. + if ( ['NONE', 'PREMOD'].indexOf(comment.status) >= 0 && comment.actions && comment.actions.some((a) => a.__typename === 'FlagAction') ) {