Kavitha Alagesan
Committed by Gerrit Code Review

Fix for ONOS-3677

Change-Id: I95f87b93f18da98a0bd0b77d7c41b83aa9f7390e
...@@ -13,6 +13,22 @@ ...@@ -13,6 +13,22 @@
13 13
14 <div class="separator"></div> 14 <div class="separator"></div>
15 15
16 + <span ng-if="brief">
17 + <div class="active"
18 + icon icon-id="plus" icon-size="42"
19 + tooltip tt-msg="detailTip"
20 + ng-click="briefToggle()"> </div>
21 + </span>
22 +
23 + <span ng-if="!brief">
24 + <div class="active"
25 + icon icon-id="minus" icon-size="42"
26 + tooltip tt-msg="briefTip"
27 + ng-click="briefToggle()"> </div>
28 + </span>
29 +
30 + <div class="separator"></div>
31 +
16 <div class="active" 32 <div class="active"
17 icon icon-id="deviceTable" icon-size="42" 33 icon icon-id="deviceTable" icon-size="42"
18 tooltip tt-msg="deviceTip" 34 tooltip tt-msg="deviceTip"
...@@ -69,7 +85,7 @@ ...@@ -69,7 +85,7 @@
69 <td class="right">{{group.packets}}</td> 85 <td class="right">{{group.packets}}</td>
70 <td class="right">{{group.bytes}}</td> 86 <td class="right">{{group.bytes}}</td>
71 </tr> 87 </tr>
72 - <tr row-id="{{group.id}}" ng-repeat-end> 88 + <tr row-id="{{group.id}}" ng-hide="brief" ng-repeat-end>
73 <td class="buckets" colspan="6" 89 <td class="buckets" colspan="6"
74 ng-bind-html="group.buckets"></td> 90 ng-bind-html="group.buckets"></td>
75 </tr> 91 </tr>
......
...@@ -41,7 +41,9 @@ ...@@ -41,7 +41,9 @@
41 $scope.flowTip = 'Show flow view for this device'; 41 $scope.flowTip = 'Show flow view for this device';
42 $scope.portTip = 'Show port view for this device'; 42 $scope.portTip = 'Show port view for this device';
43 $scope.meterTip = 'Show meter view for selected device'; 43 $scope.meterTip = 'Show meter view for selected device';
44 - 44 + $scope.briefTip = 'Switch to brief view';
45 + $scope.detailTip = 'Switch to detailed view';
46 + $scope.brief = true;
45 params = $location.search(); 47 params = $location.search();
46 if (params.hasOwnProperty('devId')) { 48 if (params.hasOwnProperty('devId')) {
47 $scope.devId = params['devId']; 49 $scope.devId = params['devId'];
...@@ -66,6 +68,9 @@ ...@@ -66,6 +68,9 @@
66 ns.navTo(path, { devId: $scope.devId }); 68 ns.navTo(path, { devId: $scope.devId });
67 } 69 }
68 }; 70 };
71 + $scope.briefToggle = function () {
72 + $scope.brief = !$scope.brief;
73 + };
69 74
70 $log.log('OvGroupCtrl has been created'); 75 $log.log('OvGroupCtrl has been created');
71 }]); 76 }]);
......