feat(filters): adult filter

This commit is contained in:
Alexey Kasyanchuk
2018-04-26 11:06:50 +03:00
parent aae2ddf458
commit 89a0e8689d
3 changed files with 22 additions and 1 deletions

View File

@ -115,6 +115,20 @@ export default class ConfigPage extends Page {
</div>
</div>
<Toggle
style={{marginTop: '10px'}}
label="Adult filter"
toggled={this.options.filters && this.options.filters.adultFilter}
onToggle={(e, checked) => {
if(!this.options.filters)
return
this.options.filters.adultFilter = checked
this.forceUpdate()
}}
/>
{
this.toRemoveProbably && this.toRemoveProbably > 0
?