Ensure k8s views are correctly hidden.

- Filter unconnected psuedo nodes from the Pods view
- Don't report these filtered nodes in stats
- Fix typo in logic for hiding views
This commit is contained in:
Tom Wilkie
2016-04-07 12:01:23 +01:00
parent bfb65cb4af
commit 22402c34f7
3 changed files with 32 additions and 11 deletions

View File

@@ -55,6 +55,6 @@ export function setTopologyUrlsById(topologyUrlsById, topologies) {
}
export function filterHiddenTopologies(topologies) {
return topologies.filter(t => (!t.hidden_if_empty || t.stats.node_count > 0 ||
return topologies.filter(t => (!t.hide_if_empty || t.stats.node_count > 0 ||
t.stats.filtered_nodes > 0));
}