From 33a75aa4d0694574658fc3c8262595342ed23492 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 31 Jul 2017 09:46:51 -0300 Subject: [PATCH] Moving flag to the bottom --- client/coral-admin/src/graphql/utils.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/client/coral-admin/src/graphql/utils.js b/client/coral-admin/src/graphql/utils.js index 1dc6b45c3..a30ad1745 100644 --- a/client/coral-admin/src/graphql/utils.js +++ b/client/coral-admin/src/graphql/utils.js @@ -67,18 +67,12 @@ function addCommentToQueue(root, queue, comment, sort) { function getCommentQueues(comment) { const queues = ['all']; - if (comment.status === 'APPROVED') { + if (comment.status === 'ACCEPTED') { queues.push('approved'); } else if (comment.status === 'REJECTED') { queues.push('rejected'); } - else if ( - ['NONE', 'PREMOD'].indexOf(comment.status) >= 0 - && comment.actions && comment.actions.some((a) => a.__typename === 'FlagAction') - ) { - queues.push('flagged'); - } else if (comment.status === 'PREMOD') { queues.push('premod'); queues.push('new'); @@ -86,6 +80,12 @@ function getCommentQueues(comment) { else if (comment.status === 'NONE') { queues.push('new'); } + else if ( + ['NONE', 'PREMOD'].indexOf(comment.status) >= 0 + && comment.actions && comment.actions.some((a) => a.__typename === 'FlagAction') + ) { + queues.push('flagged'); + } return queues; }