eslint
This commit is contained in:
parent
0727da3236
commit
a752a67370
@ -130,38 +130,38 @@ export default class ConfigPage extends Page {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='column w100p'>
|
<div className='column w100p'>
|
||||||
<Toggle
|
<Toggle
|
||||||
style={{marginTop: '10px'}}
|
style={{marginTop: '10px'}}
|
||||||
label={__('Adult filter')}
|
label={__('Adult filter')}
|
||||||
toggled={this.options.filters && this.options.filters.adultFilter}
|
toggled={this.options.filters && this.options.filters.adultFilter}
|
||||||
onToggle={(e, checked) => {
|
onToggle={(e, checked) => {
|
||||||
if(!this.options.filters)
|
if(!this.options.filters)
|
||||||
return
|
return
|
||||||
|
|
||||||
this.options.filters.adultFilter = checked
|
this.options.filters.adultFilter = checked
|
||||||
this.forceUpdate()
|
this.forceUpdate()
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div className='fs0-75' style={{color: 'grey'}}>
|
<div className='fs0-75' style={{color: 'grey'}}>
|
||||||
* - {__('* - enabled means ignoring all adult content')}
|
* - {__('* - enabled means ignoring all adult content')}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{
|
{
|
||||||
this.options.filters // bug with props
|
this.options.filters // bug with props
|
||||||
&&
|
&&
|
||||||
<div className='w100p'>
|
<div className='w100p'>
|
||||||
<InputSize
|
<InputSize
|
||||||
value={this.options.filters && this.options.filters.size}
|
value={this.options.filters && this.options.filters.size}
|
||||||
enabled={this.options.filters && this.options.filters.sizeEnabled}
|
enabled={this.options.filters && this.options.filters.sizeEnabled}
|
||||||
maxSize={this.options.filters && this.options.filters.maxSize}
|
maxSize={this.options.filters && this.options.filters.maxSize}
|
||||||
onChange={({size, maxSize, enabled}) => {
|
onChange={({size, maxSize, enabled}) => {
|
||||||
this.options.filters.size = size
|
this.options.filters.size = size
|
||||||
this.options.filters.maxSize = maxSize
|
this.options.filters.maxSize = maxSize
|
||||||
this.options.filters.sizeEnabled = enabled
|
this.options.filters.sizeEnabled = enabled
|
||||||
this.forceUpdate()
|
this.forceUpdate()
|
||||||
}} />
|
}} />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user