You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2014/09/08 18:59:45 UTC

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

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 <yu...@hortonworks.com>
Authored: Sat Sep 6 08:44:10 2014 -0700
Committer: Yusaku Sako <yu...@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);