Fix unchanging checkmarks, move mod to another category

This commit is contained in:
Ilya Ig. Petrov 2017-05-28 19:54:36 +05:00
parent 32d8e93ddf
commit 0028c77f0d
3 changed files with 7 additions and 8 deletions

View File

@ -74,7 +74,7 @@
ifProxyMoreDomains: {
ifDisabled: true,
dflt: false,
category: 'exceptions',
category: 'ownProxies',
label: 'проксировать .onion, .i2p и OpenNIC',
desc: 'Проксировать особые домены. Необходима поддержка со стороны СВОИХ прокси.',
order: 8,

View File

@ -62,6 +62,7 @@ export default function getExceptions(theState) {
})
}
<li><input type="checkbox" style="visibility: hidden"/><a href>Смотреть последние ошибки</a></li>
</ul>
</div>
);

View File

@ -20,15 +20,13 @@ export default function getModList(theState) {
handleCheck(confMeta, ifChecked) {
if (ifChecked === false || !confMeta.ifChild) {
this.handleNewValue(confMeta, ifChecked);
} else {
console.log('SET STATE', confMeta.index);
this.setState({
checks: this.state.checks.map(
(ch, i) => i === confMeta.index ? ifChecked : ch
)
});
if (ifChecked === false || !confMeta.ifChild) {
this.handleNewValue(confMeta, ifChecked);
}
}