Adding option to show no host labels in the GUI.
Change-Id: I80072b14f15e344fa8a55f40a446085c1538337c
diff --git a/web/gui/src/main/webapp/app/view/topo/topoD3.js b/web/gui/src/main/webapp/app/view/topo/topoD3.js
index 9aafc98..15499a5 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoD3.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoD3.js
@@ -150,11 +150,12 @@
case 0: return topoLion('fl_host_labels_show_friendly');
case 1: return topoLion('fl_host_labels_show_ip');
case 2: return topoLion('fl_host_labels_show_mac');
+ case 3: return topoLion('fl_host_labels_hide');
}
}
function setHostLabIndex(mode) {
- hostLabelIndex = mode % 3;
+ hostLabelIndex = mode % 4;
var p = ps.getPrefs('topo_prefs', ttbs.defaultPrefs);
p.hlbls = hostLabelIndex;
ps.setPrefs('topo_prefs', p);