Committed by
Simon Hunt
fix for ONOS-3428
Change-Id: I180ee4fb26383c017fbeff98c324d99dc21a34c4 (cherry picked from commit b7fc92d5)
Showing
2 changed files
with
26 additions
and
2 deletions
... | @@ -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}" |
... | @@ -57,12 +74,12 @@ | ... | @@ -57,12 +74,12 @@ |
57 | </tr> | 74 | </tr> |
58 | <tr ng-click="selectCallback($event, intent)" | 75 | <tr ng-click="selectCallback($event, intent)" |
59 | ng-class="{selected: intent.key === selId}" | 76 | ng-class="{selected: intent.key === selId}" |
60 | - row-id="{{intent.key}}"> | 77 | + row-id="{{intent.key}}" ng-hide="brief" > |
61 | <td class="resources" colspan="5">{{intent.resources}}</td> | 78 | <td class="resources" colspan="5">{{intent.resources}}</td> |
62 | </tr> | 79 | </tr> |
63 | <tr ng-click="selectCallback($event, intent)" | 80 | <tr ng-click="selectCallback($event, intent)" |
64 | ng-class="{selected: intent.key === selId}" | 81 | ng-class="{selected: intent.key === selId}" |
65 | - row-id="{{intent.key}}" ng-repeat-end> | 82 | + row-id="{{intent.key}}" ng-hide="brief" ng-repeat-end> |
66 | <td class="details" colspan="5">{{intent.details}}</td> | 83 | <td class="details" colspan="5">{{intent.details}}</td> |
67 | </tr> | 84 | </tr> |
68 | </table> | 85 | </table> | ... | ... |
... | @@ -32,6 +32,9 @@ | ... | @@ -32,6 +32,9 @@ |
32 | 'TopoTrafficService', 'DialogService', | 32 | 'TopoTrafficService', 'DialogService', |
33 | 33 | ||
34 | function ($log, $scope, tbs, ns, tts, ds) { | 34 | function ($log, $scope, tbs, ns, tts, ds) { |
35 | + $scope.briefTip = 'Switch to brief view'; | ||
36 | + $scope.detailTip = 'Switch to detailed view'; | ||
37 | + $scope.brief = true; | ||
35 | 38 | ||
36 | function selCb($event, row) { | 39 | function selCb($event, row) { |
37 | $log.debug('Got a click on:', row); | 40 | $log.debug('Got a click on:', row); |
... | @@ -85,6 +88,10 @@ | ... | @@ -85,6 +88,10 @@ |
85 | .bindKeys(); | 88 | .bindKeys(); |
86 | }; | 89 | }; |
87 | 90 | ||
91 | + $scope.briefToggle = function () { | ||
92 | + $scope.brief = !$scope.brief; | ||
93 | + }; | ||
94 | + | ||
88 | $scope.$on('$destroy', function () { | 95 | $scope.$on('$destroy', function () { |
89 | ds.closeDialog(); | 96 | ds.closeDialog(); |
90 | $log.debug('OvIntentCtrl has been destroyed'); | 97 | $log.debug('OvIntentCtrl has been destroyed'); | ... | ... |
-
Please register or login to post a comment