commit | 42d7a6c335c1dcbc52515a8ecdd0975c3663791d | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Wed Nov 01 15:54:57 2017 +0000 |
committer | Thomas Vachuska <tom@opennetworking.org> | Wed Nov 01 18:19:58 2017 +0000 |
tree | e4f4703986ff64e328b598097aea5dd9c2fe29e7 | |
parent | 61aeb356774fcaa478b2ded0ae505086daae13e0 [diff] |
ONOS-7181: Hide port label on UiEdgeLinks when hosts are disabled Change-Id: I87b9ab5577d153bbb59946974f51372527452835
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Link.js b/web/gui/src/main/webapp/app/view/topo2/topo2Link.js index 3af8c0c..d905757 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2Link.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2Link.js
@@ -163,6 +163,11 @@ var data = [], point; + var hostsVisible = ps.getPrefs('topo2_prefs')['hosts']; + if (!hostsVisible && this.get('type') === 'UiEdgeLink') { + return; + } + if (showPort()) { this.set('enhanced', true); point = this.locatePortLabel();