GUI -- Refactored DeviceTableRow to use abstract super class.
- added type and chassis ID to table data
Change-Id: I5758bfb3f9dcd659325265d734ffe9aa7ae1b0ad
diff --git a/web/gui/src/main/webapp/app/fw/svg/icon.js b/web/gui/src/main/webapp/app/fw/svg/icon.js
index e3f4bdb..51e47b9 100644
--- a/web/gui/src/main/webapp/app/fw/svg/icon.js
+++ b/web/gui/src/main/webapp/app/fw/svg/icon.js
@@ -31,6 +31,8 @@
var glyphMapping = {
deviceOnline: 'checkMark',
deviceOffline: 'xMark',
+ devIcon_SWITCH: 'switch',
+
tableColSortAsc: 'triangleUp',
tableColSortDesc: 'triangleDown',
tableColSortNone: '-'
diff --git a/web/gui/src/main/webapp/app/fw/widget/table.js b/web/gui/src/main/webapp/app/fw/widget/table.js
index 6477018..3d950b8 100644
--- a/web/gui/src/main/webapp/app/fw/widget/table.js
+++ b/web/gui/src/main/webapp/app/fw/widget/table.js
@@ -83,7 +83,7 @@
// if the header has no text in it,
// then make the column the width of the td element.
// (This looks good for icons)
- if (!(thElement.html().length)) {
+ if (!(thElement.text().length)) {
var tdSize = tdElement.style('width');
thElement.style('width', tdSize + 'px');
tdElement.style('width', tdSize + 'px');
@@ -161,6 +161,7 @@
};
}])
+ // TODO: fix header alignment spacing
.directive('onosFixedHeader', ['$window', '$timeout',
'MastService', 'FnService',
function (_$window_, $timeout, mast, _fs_) {