mirror of
https://github.com/wassname/talk.git
synced 2026-07-29 11:28:24 +08:00
accepted to approved
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user