Fixed Topo-2 summary and details panels, which were broken from recent
changes made in "classic" topo, to support localization.
Change-Id: I3f5eacc2e792aada63b36da4cb50233e5d593cf2
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 bcf0469..4ee1205 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2DeviceDetailsPanel.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2DeviceDetailsPanel.js
@@ -101,6 +101,7 @@
}
function renderSingle(data) {
+ var endedWithSeparator;
detailsPanel.emptyRegions();
@@ -120,12 +121,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);
- }
+ // TODO: add navigation hot-link if defined
+ // See topoPanel.js for equivalent code in "classic" topo
- ls.listProps(tbody, data);
+ endedWithSeparator = ls.listProps(tbody, data);
+ // TODO : review whether we need to use/store end-with-sep state
addBtnFooter();
}