ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject git commit: AMBARI-7188. Views landing page shows an empty page when the default admin user logs in after cluster creation. (yusaku)
Date Mon, 08 Sep 2014 16:59:45 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 5e36846fa -> fd4282f61


AMBARI-7188. Views landing page shows an empty page when the default admin user logs in after
cluster creation. (yusaku)


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

Branch: refs/heads/trunk
Commit: fd4282f6126b6d6a6e36111189aba38c0d2af385
Parents: 5e36846
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Sat Sep 6 08:44:10 2014 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Mon Sep 8 09:59:29 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/fd4282f6/ambari-web/app/controllers/main/views_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/views_controller.js b/ambari-web/app/controllers/main/views_controller.js
index 687554b..b3b36fe 100644
--- a/ambari-web/app/controllers/main/views_controller.js
+++ b/ambari-web/app/controllers/main/views_controller.js
@@ -86,7 +86,9 @@ App.MainViewsController = Em.Controller.extend({
             instanceName: instance.ViewInstanceInfo.instance_name,
             href: instance.ViewInstanceInfo.context_path
           });
-          instances.push(current_instance);
+          if( current_instance.visible ){
+            instances.push(current_instance);
+          }
         }, this);
       }, this);
     }, this);


Mime
View raw message