Repository: ambari Updated Branches: refs/heads/trunk 1b7cc137d -> 3572e5322
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/3572e532 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3572e532 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3572e532 Branch: refs/heads/trunk Commit: 3572e5322cd2a07cfbde318921cec40625d92560 Parents: 1b7cc13 Author: Alex Antonenko <[email protected]> Authored: Mon Jul 18 14:53:53 2016 +0300 Committer: Alex Antonenko <[email protected]> Committed: Mon Jul 18 15:54:44 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/3572e532/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')) {
