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/02/19 17:03:52 UTC

git commit: AMBARI-4739. UI is not loading in test mode. (alexantonenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 81c32ed50 -> 8c27b827e


AMBARI-4739. UI is not loading in test mode. (alexantonenko)


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

Branch: refs/heads/trunk
Commit: 8c27b827ede1999dea1a58a8d2a176b28aa2a2e4
Parents: 81c32ed
Author: Alex Antonenko <hi...@gmail.com>
Authored: Wed Feb 19 17:59:51 2014 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Wed Feb 19 17:59:51 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/routes/main.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/8c27b827/ambari-web/app/routes/main.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/routes/main.js b/ambari-web/app/routes/main.js
index 6387f2d..b825ca2 100644
--- a/ambari-web/app/routes/main.js
+++ b/ambari-web/app/routes/main.js
@@ -26,9 +26,13 @@ module.exports = Em.Route.extend({
     console.log('in /main:enter');
     if (router.getAuthenticated()) {
       App.router.get('clusterController').loadClusterName(false);
-      App.router.get('clusterController').loadClientServerClockDistance().done(function() {
+      if(App.testMode){
         router.get('mainController').initialize();
-      });
+      }else{
+        App.router.get('clusterController').loadClientServerClockDistance().done(function() {
+          router.get('mainController').initialize();
+        });
+      }
       // TODO: redirect to last known state
     } else {
       Ember.run.next(function () {