You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2014/04/02 17:50:31 UTC

git commit: AMBARI-5320. Jobs link should not show up when security is enabled (alexantonenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 86b95b03c -> f4f30dd69


AMBARI-5320. Jobs link should not show up when security is enabled (alexantonenko)


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

Branch: refs/heads/trunk
Commit: f4f30dd693d1e8d58c7abc657cbef4580fc6b05c
Parents: 86b95b0
Author: Alex Antonenko <hi...@gmail.com>
Authored: Wed Apr 2 18:47:53 2014 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Wed Apr 2 18:47:53 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/admin.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f4f30dd6/ambari-web/app/controllers/main/admin.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin.js b/ambari-web/app/controllers/main/admin.js
index ea4701c..8a2893b 100644
--- a/ambari-web/app/controllers/main/admin.js
+++ b/ambari-web/app/controllers/main/admin.js
@@ -40,6 +40,7 @@ App.MainAdminController = Em.Controller.extend({
       .filter(function(componentName) {
         return dependencies.components.contains(componentName);
       });
-    return (dependencies.services.length == serviceNames.length && componentNames.length == 0);
+    var isAppTimelineServerAvailable = App.HostComponent.find().findProperty('componentName','APP_TIMELINE_SERVER');
+    return (dependencies.services.length == serviceNames.length && componentNames.length == 0 && isAppTimelineServerAvailable);
   }.property()
 });
\ No newline at end of file