commit | 9aeab9231a22f365d4329fc88eda1a8bac365959 | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Wed Apr 12 16:17:10 2017 -0700 |
committer | Steven Burrows <sburrows@villa-technologies.com> | Wed Apr 12 16:18:37 2017 -0700 |
tree | d0fc25d3a33a0ba09ac53cfd38a2a253882239be | |
parent | 1f036b8c99ae5cd3476a6bb17a21d425ca6d3b66 [diff] |
Topo2 - Remove lat and long from details panel if undefined JIRA Tasks; ONOS-6293 Change-Id: Ie9e9e34f609b6b288531c030052a2eddc7684791
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2DeviceDetailsPanel.js b/web/gui/src/main/webapp/app/view/topo2/topo2DeviceDetailsPanel.js index df67061..76893f1 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2DeviceDetailsPanel.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2DeviceDetailsPanel.js
@@ -104,7 +104,6 @@ detailsPanel.emptyRegions(); - var navFn = function () { ns.navTo(devicePath, { devId: data.id }); }; @@ -121,6 +120,11 @@ gs.addGlyph(svg, (data.type || 'unknown'), 26); title.text(data.title); + if (!data.props.Latitude) { + var locationIndex = data.propOrder.indexOf('Latitude'); + data.propOrder.splice(locationIndex - 1, 3); + } + ls.listProps(tbody, data); addBtnFooter(); }