Simon Hunt

ONOS-3129 : GUI Intents to Topo :: part the third -- (bug fix) only navigate if …

…a table row is selected.

Change-Id: I21950448c0f05df29edbdd3ba8068ebc8c028da0
......@@ -33,7 +33,7 @@
id = m ? m[1] : null,
name = m ? m[2] : null;
$scope.intentData = m ? {
$scope.intentData = ($scope.selId && m) ? {
intentAppId: id,
intentAppName: name,
intentKey: row.key
......@@ -51,8 +51,7 @@
$scope.showIntent = function () {
var d = $scope.intentData;
$log.debug("+++ showIntent +++", d);
ns.navTo('topo', d);
d && ns.navTo('topo', d);
};
$log.log('OvIntentCtrl has been created');
......