ONOS-3129 : GUI Intents to Topo :: part the third -- (bug fix) only navigate if …
…a table row is selected. Change-Id: I21950448c0f05df29edbdd3ba8068ebc8c028da0
Showing
1 changed file
with
2 additions
and
3 deletions
... | @@ -33,7 +33,7 @@ | ... | @@ -33,7 +33,7 @@ |
33 | id = m ? m[1] : null, | 33 | id = m ? m[1] : null, |
34 | name = m ? m[2] : null; | 34 | name = m ? m[2] : null; |
35 | 35 | ||
36 | - $scope.intentData = m ? { | 36 | + $scope.intentData = ($scope.selId && m) ? { |
37 | intentAppId: id, | 37 | intentAppId: id, |
38 | intentAppName: name, | 38 | intentAppName: name, |
39 | intentKey: row.key | 39 | intentKey: row.key |
... | @@ -51,8 +51,7 @@ | ... | @@ -51,8 +51,7 @@ |
51 | 51 | ||
52 | $scope.showIntent = function () { | 52 | $scope.showIntent = function () { |
53 | var d = $scope.intentData; | 53 | var d = $scope.intentData; |
54 | - $log.debug("+++ showIntent +++", d); | 54 | + d && ns.navTo('topo', d); |
55 | - ns.navTo('topo', d); | ||
56 | }; | 55 | }; |
57 | 56 | ||
58 | $log.log('OvIntentCtrl has been created'); | 57 | $log.log('OvIntentCtrl has been created'); | ... | ... |
-
Please register or login to post a comment