Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 ab9b37abe -> d652c15a8


AMBARI-17584. Hide SMARTSENSE QuickLinks for 2.4. Additional change 
(alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d652c15a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d652c15a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d652c15a

Branch: refs/heads/branch-2.4
Commit: d652c15a8cc3fc66eb9beaf59b8d934ea5fcda90
Parents: ab9b37a
Author: Alex Antonenko <[email protected]>
Authored: Mon Jul 18 14:53:53 2016 +0300
Committer: Alex Antonenko <[email protected]>
Committed: Mon Jul 18 15:55:40 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/views/common/quick_view_link_view.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d652c15a/ambari-web/app/views/common/quick_view_link_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/quick_view_link_view.js 
b/ambari-web/app/views/common/quick_view_link_view.js
index 44cebe1..17d7c04 100644
--- a/ambari-web/app/views/common/quick_view_link_view.js
+++ b/ambari-web/app/views/common/quick_view_link_view.js
@@ -632,8 +632,10 @@ App.QuickViewLinks = Em.View.extend({
             hosts = hosts.concat(this.processYarnHosts(componentHosts));
             break;
           case "SMARTSENSE":
-            hosts = [];
-            break;
+            if(!App.MasterComponent.find().findProperty('componentName', 
_componentName)) {
+              hosts = [];
+              break;
+            }
           default:
             hosts = hosts.concat(componentHosts);
             if(hosts.length < 1 && 
this.getWithDefault('content.hostComponents', []).someProperty('isMaster')) {

Reply via email to