fix for ONOS-3428

Change-Id: I180ee4fb26383c017fbeff98c324d99dc21a34c4
(cherry picked from commit b7fc92d)
diff --git a/web/gui/src/main/webapp/app/view/intent/intent.js b/web/gui/src/main/webapp/app/view/intent/intent.js
index 3571228..b033dd3 100644
--- a/web/gui/src/main/webapp/app/view/intent/intent.js
+++ b/web/gui/src/main/webapp/app/view/intent/intent.js
@@ -32,6 +32,9 @@
             'TopoTrafficService', 'DialogService',
 
         function ($log, $scope, tbs, ns, tts, ds) {
+            $scope.briefTip = 'Switch to brief view';
+            $scope.detailTip = 'Switch to detailed view';
+            $scope.brief = true;
 
             function selCb($event, row) {
                 $log.debug('Got a click on:', row);
@@ -85,6 +88,10 @@
                     .bindKeys();
             };
 
+            $scope.briefToggle = function () {
+                $scope.brief = !$scope.brief;
+            };
+
             $scope.$on('$destroy', function () {
                 ds.closeDialog();
                 $log.debug('OvIntentCtrl has been destroyed');