Skip to content

Commit

Permalink
vpn added to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hall authored and Brian Hall committed Dec 29, 2024
1 parent fca0847 commit 7a53528
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Filters/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { nodeColors } from "../../utils";
const labels = [
"active",
"remote",
"kiosk",
"omni",
"hub",
"supernode",
Expand All @@ -16,7 +15,8 @@ const labels = [
"potential-supernode",
"linkNYC Classic",
"linkNYC 5G",
"sector"
"sector",
"VPN"
];

export default class Filters extends PureComponent {
Expand Down
8 changes: 7 additions & 1 deletion src/components/MapView/LinkLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions src/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const initialFilters = {
"potential-hub": true,
"potential-supernode": true,
sector: true,
VPN: false,
backbone: false,
changelog: false
};
Expand Down

0 comments on commit 7a53528

Please sign in to comment.