Kavitha Alagesan
Committed by Gerrit Code Review

fix for ONOS-3428

Change-Id: I180ee4fb26383c017fbeff98c324d99dc21a34c4
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
23 } 23 }
24 24
25 #ov-intent div.ctrl-btns { 25 #ov-intent div.ctrl-btns {
26 - width: 110px;
27 } 26 }
28 27
29 28
......
...@@ -8,6 +8,23 @@ ...@@ -8,6 +8,23 @@
8 tooltip tt-msg="autoRefreshTip" 8 tooltip tt-msg="autoRefreshTip"
9 ng-click="toggleRefresh()"></div> 9 ng-click="toggleRefresh()"></div>
10 10
11 +
12 + <div class="separator"></div>
13 +
14 + <span ng-if="brief">
15 + <div class="active"
16 + icon icon-id="plus" icon-size="42"
17 + tooltip tt-msg="detailTip"
18 + ng-click="briefToggle()"> </div>
19 + </span>
20 +
21 + <span ng-if="!brief">
22 + <div class="active"
23 + icon icon-id="minus" icon-size="42"
24 + tooltip tt-msg="briefTip"
25 + ng-click="briefToggle()"> </div>
26 + </span>
27 +
11 <div class="separator"></div> 28 <div class="separator"></div>
12 29
13 <div ng-class="{active: !!selId}" 30 <div ng-class="{active: !!selId}"
...@@ -50,12 +67,12 @@ ...@@ -50,12 +67,12 @@
50 </tr> 67 </tr>
51 <tr ng-click="selectCallback($event, intent)" 68 <tr ng-click="selectCallback($event, intent)"
52 ng-class="{selected: intent.key === selId}" 69 ng-class="{selected: intent.key === selId}"
53 - row-id="{{intent.key}}"> 70 + row-id="{{intent.key}}" ng-hide="brief" >
54 <td class="resources" colspan="5">{{intent.resources}}</td> 71 <td class="resources" colspan="5">{{intent.resources}}</td>
55 </tr> 72 </tr>
56 <tr ng-click="selectCallback($event, intent)" 73 <tr ng-click="selectCallback($event, intent)"
57 ng-class="{selected: intent.key === selId}" 74 ng-class="{selected: intent.key === selId}"
58 - row-id="{{intent.key}}" ng-repeat-end> 75 + row-id="{{intent.key}}" ng-hide="brief" ng-repeat-end>
59 <td class="details" colspan="5">{{intent.details}}</td> 76 <td class="details" colspan="5">{{intent.details}}</td>
60 </tr> 77 </tr>
61 </table> 78 </table>
......
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
26 ['$log', '$scope', 'TableBuilderService', 'NavService', 26 ['$log', '$scope', 'TableBuilderService', 'NavService',
27 27
28 function ($log, $scope, tbs, ns) { 28 function ($log, $scope, tbs, ns) {
29 - 29 + $scope.briefTip = 'Switch to brief view';
30 + $scope.detailTip = 'Switch to detailed view';
31 + $scope.brief = true;
30 function selCb($event, row) { 32 function selCb($event, row) {
31 $log.debug('Got a click on:', row); 33 $log.debug('Got a click on:', row);
32 var m = /(\d+)\s:\s(.*)/.exec(row.appId), 34 var m = /(\d+)\s:\s(.*)/.exec(row.appId),
...@@ -54,6 +56,10 @@ ...@@ -54,6 +56,10 @@
54 d && ns.navTo('topo', d); 56 d && ns.navTo('topo', d);
55 }; 57 };
56 58
59 + $scope.briefToggle = function () {
60 + $scope.brief = !$scope.brief;
61 + };
62 +
57 $log.log('OvIntentCtrl has been created'); 63 $log.log('OvIntentCtrl has been created');
58 }]); 64 }]);
59 }()); 65 }());
......