mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 11:45:32 +08:00
Premod and New Queue Edge Case
This commit is contained in:
@@ -215,11 +215,16 @@ class ModerationContainer extends Component {
|
||||
}
|
||||
|
||||
const premodEnabled = assetId ? isPremod(asset.settings.moderation) : isPremod(settings.moderation);
|
||||
|
||||
const currentQueueConfig = Object.assign({}, this.props.queueConfig);
|
||||
|
||||
|
||||
if (premodEnabled) {
|
||||
delete currentQueueConfig.new;
|
||||
} else {
|
||||
delete currentQueueConfig.premod;
|
||||
delete currentQueueConfig.new
|
||||
}
|
||||
|
||||
if (!root.premodCount || premodEnabled) {
|
||||
delete currentQueueConfig.premod
|
||||
}
|
||||
|
||||
return <Moderation
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import t from 'coral-framework/services/i18n';
|
||||
|
||||
export default {
|
||||
premod: {
|
||||
statuses: ['PREMOD'],
|
||||
icon: 'access_time',
|
||||
name: t('modqueue.premod'),
|
||||
},
|
||||
new: {
|
||||
statuses: ['NONE', 'PREMOD'],
|
||||
icon: 'question_answer',
|
||||
name: t('modqueue.new'),
|
||||
},
|
||||
premod: {
|
||||
statuses: ['PREMOD'],
|
||||
icon: 'access_time',
|
||||
name: t('modqueue.premod'),
|
||||
},
|
||||
reported: {
|
||||
action_type: 'FLAG',
|
||||
statuses: ['NONE', 'PREMOD'],
|
||||
|
||||
Reference in New Issue
Block a user