accepted to approved

This commit is contained in:
Belen Curcio
2017-07-31 09:38:39 -03:00
parent c9df0e5e40
commit 4f34827ec8
4 changed files with 7 additions and 7 deletions
@@ -145,8 +145,8 @@ export default class Moderation extends Component {
case 'new':
activeTabCount = root.newCount;
break;
case 'accepted':
activeTabCount = root.acceptedCount;
case 'approved':
activeTabCount = root.approvedCount;
break;
case 'premod':
activeTabCount = root.premodCount;
@@ -171,7 +171,7 @@ export default class Moderation extends Component {
asset={asset}
allCount={root.allCount}
newCount={root.newCount}
acceptedCount={root.acceptedCount}
approvedCount={root.approvedCount}
premodCount={root.premodCount}
rejectedCount={root.rejectedCount}
reportedCount={root.reportedCount}
@@ -11,7 +11,7 @@ import t from 'coral-framework/services/i18n';
const ModerationMenu = ({
asset = {},
allCount,
acceptedCount,
approvedCount,
premodCount,
newCount,
rejectedCount,
@@ -54,7 +54,7 @@ const ModerationMenu = ({
to={getModPath('approved', asset.id)}
className={`mdl-tabs__tab ${styles.tab}`}
activeClassName={styles.active}>
<Icon name='check' className={styles.tabIcon} /> {t('modqueue.approved')} <CommentCount count={acceptedCount} />
<Icon name='check' className={styles.tabIcon} /> {t('modqueue.approved')} <CommentCount count={approvedCount} />
</Link>
<Link
to={getModPath('rejected', asset.id)}
@@ -361,7 +361,7 @@ const withModQueueQuery = withQuery(gql`
statuses: [NONE, PREMOD],
asset_id: $asset_id
})
acceptedCount: commentCount(query: {
approvedCount: commentCount(query: {
statuses: [ACCEPTED],
asset_id: $asset_id
})
@@ -405,7 +405,7 @@ const withQueueCountPolling = withQuery(gql`
statuses: [NONE, PREMOD],
asset_id: $asset_id
})
acceptedCount: commentCount(query: {
approvedCount: commentCount(query: {
statuses: [ACCEPTED],
asset_id: $asset_id
})