remove unsued imports and disable editing if proxy is disabled

This commit is contained in:
Maren Süwer
2018-08-16 11:26:45 +02:00
parent 0452b95d10
commit d2c8560609
5 changed files with 30 additions and 21 deletions

View File

@@ -66,8 +66,9 @@ class ProxySettings extends React.Component<Props> {
onChange={(isValid, changedValue, name) =>
this.props.onChange(isValid, changedValue, name)
}
disable={!enableProxy}
/>
<AddProxyExcludeField addProxyExclude={this.addProxyExclude} />
<AddProxyExcludeField addProxyExclude={this.addProxyExclude} disable={!enableProxy}/>
</div>
);
}