GUI -- Group view now accessible by button on topo and device views.
Change-Id: Ib439558a2e00895a8ac201d73d2bf05ed8518e98
diff --git a/web/gui/src/main/webapp/app/view/device/device.js b/web/gui/src/main/webapp/app/view/device/device.js
index 82348a7..b571d82 100644
--- a/web/gui/src/main/webapp/app/view/device/device.js
+++ b/web/gui/src/main/webapp/app/view/device/device.js
@@ -37,6 +37,7 @@
portsTblPdg = 50,
flowPath = 'flow',
portPath = 'port',
+ groupPath = 'group',
pName = 'device-details-panel',
bName = 'dev-dets-p',
@@ -136,6 +137,15 @@
},
'Show port view for this device'
);
+ bns.button(
+ btnsDiv,
+ bName + '-groups',
+ 'groupTable',
+ function () {
+ ns.navTo(groupPath, { devId: details.id });
+ },
+ 'Show group view for this device'
+ );
}
function addPortRow(tbody, port) {