Bri Prebilic Cole

GUI -- Group view now accessible by button on topo and device views.

Change-Id: Ib439558a2e00895a8ac201d73d2bf05ed8518e98
......@@ -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) {
......
......@@ -42,7 +42,8 @@
// constants
var flowPath = 'flow',
portPath ='port';
portPath ='port',
groupPath = 'group';
// ==========================
......@@ -263,6 +264,14 @@
},
tt: 'Show port view for this device'
});
tps.addAction({
id: 'groups-table-btn',
gid: 'groupTable',
cb: function () {
ns.navTo(groupPath, { devId: data.props['URI'] });
},
tt: 'Show group view for this device'
});
}
tps.displaySomething();
......