AMBARI-20395 Clicking on ambari logo on ambari-admin ui takes to broken layout 
on ambari-web. (atkach)


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

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: eb41a375ba4acdd01bdd37fca8a28746144a9c32
Parents: 0da5fc0
Author: Andrii Tkach <atk...@apache.org>
Authored: Fri Mar 10 15:12:28 2017 +0200
Committer: Andrii Tkach <atk...@apache.org>
Committed: Fri Mar 10 15:42:26 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/eb41a375/ambari-web/app/routes/main.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/routes/main.js b/ambari-web/app/routes/main.js
index 4607033..aace4a2 100644
--- a/ambari-web/app/routes/main.js
+++ b/ambari-web/app/routes/main.js
@@ -71,14 +71,16 @@ module.exports = Em.Route.extend(App.RouterRedirections, {
                         if (App.isAuthorized('AMBARI.ADD_DELETE_CLUSTERS')) {
                           self.redirectToInstaller(router, 
currentClusterStatus, false);
                         } else {
+                          App.router.get('clusterController').set('isLoaded', 
true);
                           Em.run.next(function () {
                             App.router.transitionTo('main.views.index');
                           });
                         }
+                      } else {
+                        App.router.get('clusterController').set('isLoaded', 
true);
                       }
                     });
                   });
-                  App.router.get('clusterController').set('isLoaded', true);
                 }
               }
             });

Reply via email to