mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
premod and new
This commit is contained in:
@@ -218,13 +218,13 @@ class ModerationContainer extends Component {
|
||||
|
||||
const currentQueueConfig = Object.assign({}, this.props.queueConfig);
|
||||
|
||||
console.log('premodEnabled', premodEnabled);
|
||||
console.log('root.premodCount', root.premodCount)
|
||||
|
||||
if (premodEnabled) {
|
||||
delete currentQueueConfig.new
|
||||
}
|
||||
|
||||
if (!root.premodCount || premodEnabled) {
|
||||
delete currentQueueConfig.premod
|
||||
delete currentQueueConfig.new;
|
||||
} else if (root.premodCount === 0) {
|
||||
delete currentQueueConfig.premod;
|
||||
}
|
||||
|
||||
return <Moderation
|
||||
|
||||
Reference in New Issue
Block a user