GUI -- Group view now accessible by button on topo and device views.
Change-Id: Ib439558a2e00895a8ac201d73d2bf05ed8518e98
Showing
2 changed files
with
20 additions
and
1 deletions
... | @@ -37,6 +37,7 @@ | ... | @@ -37,6 +37,7 @@ |
37 | portsTblPdg = 50, | 37 | portsTblPdg = 50, |
38 | flowPath = 'flow', | 38 | flowPath = 'flow', |
39 | portPath = 'port', | 39 | portPath = 'port', |
40 | + groupPath = 'group', | ||
40 | 41 | ||
41 | pName = 'device-details-panel', | 42 | pName = 'device-details-panel', |
42 | bName = 'dev-dets-p', | 43 | bName = 'dev-dets-p', |
... | @@ -136,6 +137,15 @@ | ... | @@ -136,6 +137,15 @@ |
136 | }, | 137 | }, |
137 | 'Show port view for this device' | 138 | 'Show port view for this device' |
138 | ); | 139 | ); |
140 | + bns.button( | ||
141 | + btnsDiv, | ||
142 | + bName + '-groups', | ||
143 | + 'groupTable', | ||
144 | + function () { | ||
145 | + ns.navTo(groupPath, { devId: details.id }); | ||
146 | + }, | ||
147 | + 'Show group view for this device' | ||
148 | + ); | ||
139 | } | 149 | } |
140 | 150 | ||
141 | function addPortRow(tbody, port) { | 151 | function addPortRow(tbody, port) { | ... | ... |
... | @@ -42,7 +42,8 @@ | ... | @@ -42,7 +42,8 @@ |
42 | 42 | ||
43 | // constants | 43 | // constants |
44 | var flowPath = 'flow', | 44 | var flowPath = 'flow', |
45 | - portPath ='port'; | 45 | + portPath ='port', |
46 | + groupPath = 'group'; | ||
46 | 47 | ||
47 | // ========================== | 48 | // ========================== |
48 | 49 | ||
... | @@ -263,6 +264,14 @@ | ... | @@ -263,6 +264,14 @@ |
263 | }, | 264 | }, |
264 | tt: 'Show port view for this device' | 265 | tt: 'Show port view for this device' |
265 | }); | 266 | }); |
267 | + tps.addAction({ | ||
268 | + id: 'groups-table-btn', | ||
269 | + gid: 'groupTable', | ||
270 | + cb: function () { | ||
271 | + ns.navTo(groupPath, { devId: data.props['URI'] }); | ||
272 | + }, | ||
273 | + tt: 'Show group view for this device' | ||
274 | + }); | ||
266 | } | 275 | } |
267 | 276 | ||
268 | tps.displaySomething(); | 277 | tps.displaySomething(); | ... | ... |
-
Please register or login to post a comment