[onos-5204] This commit contains fix for bug onos-5204
Addressed review comments
Addressed review comments - take2

Change-Id: I9eb1e19f70deffd33d57cdab6bb0346bd2ebbd98
diff --git a/web/gui/src/main/webapp/app/view/intent/intent.html b/web/gui/src/main/webapp/app/view/intent/intent.html
index a32f8f4..9c025f6 100644
--- a/web/gui/src/main/webapp/app/view/intent/intent.html
+++ b/web/gui/src/main/webapp/app/view/intent/intent.html
@@ -32,10 +32,10 @@
                  tooltip tt-msg="topoTip"
                  ng-click="showIntent()"></div>
 
-            <div ng-class="{'active': !!selId}"
+            <div ng-class="{'active': !!selId && isIntentInstalled()}"
                  icon icon-id="stop" icon-size="42"
                  tooltip tt-msg="deactivateTip"
-                 ng-click="deactivateIntent()"></div>
+                 ng-click="(!!selId && isIntentInstalled()) ? deactivateIntent():''"></div>
 
 
         </div>