diff options
| author | hitsmaxft <[email protected]> | 2020-02-09 22:28:27 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2020-02-10 17:28:04 +0800 |
| commit | bd82b8c5e3bad3efeecd9e2599b07128d290bea6 (patch) | |
| tree | 82499a0ebdecd0f58325205ce783a0610f7f76b3 /src | |
| parent | c206c3369754bfe934f157f0f078a7b6d25e925f (diff) | |
dropdown button & global switch
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/ProxyGroup.js | 6 | ||||
| -rw-r--r-- | src/store/proxies.js | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/components/ProxyGroup.js b/src/components/ProxyGroup.js index c000535..ae1fe58 100644 --- a/src/components/ProxyGroup.js +++ b/src/components/ProxyGroup.js @@ -5,7 +5,7 @@ import { ChevronsDown } from 'react-feather'; import cx from 'classnames'; import { connect } from './StateProvider'; -import { getDelay, getProxies, getRtFilterSwitch } from '../store/proxies'; +import { getDelay, getRtFilterSwitch } from '../store/proxies'; import Proxy, { ProxySmall } from './Proxy'; import { SectionNameType } from './shared/Basic'; @@ -124,14 +124,14 @@ const getSortDelay = (d, w) => { const mapState = (s, { all }) => { const delay = getDelay(s); - const filterError = getRtFilterSwitch(s); + const filterByRt = getRtFilterSwitch(s); const groupList = []; const proxyList = []; let clonelist = [...all]; - if (filterError) { + if (filterByRt) { const filterList = clonelist.filter(name => { const d = delay[name]; if (d === undefined) { diff --git a/src/store/proxies.js b/src/store/proxies.js index 7eceec2..22b8f2b 100644 --- a/src/store/proxies.js +++ b/src/store/proxies.js @@ -28,7 +28,6 @@ const ProxyTypes = ['Shadowsocks', 'Snell', 'Socks5', 'Http', 'Vmess']; export const getProxies = s => s.proxies.proxies; export const getDelay = s => s.proxies.delay; export const getRtFilterSwitch = s => s.filterZeroRT; -export const switchRtFilter = s => (s.filterZeroRT = !getRtFilterSwitch(s)); export const getProxyGroupNames = s => s.proxies.groupNames; export const getProxyProviders = s => s.proxies.proxyProviders || []; export const getDangleProxyNames = s => s.proxies.dangleProxyNames; |
