diff --git a/src/components/Filters/component.js b/src/components/Filters/component.js index 1391b79..59c7b0b 100644 --- a/src/components/Filters/component.js +++ b/src/components/Filters/component.js @@ -7,7 +7,6 @@ import { nodeColors } from "../../utils"; const labels = [ "active", "remote", - "kiosk", "omni", "hub", "supernode", @@ -16,7 +15,8 @@ const labels = [ "potential-supernode", "linkNYC Classic", "linkNYC 5G", - "sector" + "sector", + "VPN" ]; export default class Filters extends PureComponent { diff --git a/src/components/MapView/LinkLine.js b/src/components/MapView/LinkLine.js index 0b84d24..d10b3c8 100644 --- a/src/components/MapView/LinkLine.js +++ b/src/components/MapView/LinkLine.js @@ -7,9 +7,12 @@ export default class LinkLine extends PureComponent { }; render() { - const { link, visible } = this.props; + const { link, visible, filters } = this.props; const { fromNode, toNode } = link; + const { status } = link; + if (status === "vpn" && !filters.VPN) return null; + if (!fromNode || !toNode) { return null; } @@ -79,6 +82,9 @@ export default class LinkLine extends PureComponent { activeColor = "#03fcf8" } + if (status === "vpn"){ + + } if (status === "fiber"||status === "vpn"||status === "active"||status === "60GHz") { if (filters.backbone && !isBackbone(link)) diff --git a/src/reducers/index.js b/src/reducers/index.js index 5a98811..3eaa916 100644 --- a/src/reducers/index.js +++ b/src/reducers/index.js @@ -17,6 +17,7 @@ const initialFilters = { "potential-hub": true, "potential-supernode": true, sector: true, + VPN: false, backbone: false, changelog: false };