浏览代码

AMBARI-5775 Logging in to an already deployed cluster briefly shows the Install Wizard. (ababiichuk)

aBabiichuk 11 年之前
父节点
当前提交
548a8c29be
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-web/app/router.js

+ 1 - 1
ambari-web/app/router.js

@@ -280,7 +280,7 @@ App.Router = Em.Router.extend({
     }
     App.clusterStatus.updateFromServer(false, false);
     var clusterStatusOnServer = App.clusterStatus.get('value');
-    if (!App.get('isAdmin') || clusterStatusOnServer && clusterStatusOnServer.clusterState === 'DEFAULT') {
+    if (!App.get('isAdmin') || clusterStatusOnServer && (clusterStatusOnServer.clusterState === 'DEFAULT' || clusterStatusOnServer.clusterState === 'CLUSTER_STARTED_5')) {
       return 'main.dashboard.index';
     } else if (clusterStatusOnServer && clusterStatusOnServer.wizardControllerName === App.router.get('addHostController.name')) {
       // if wizardControllerName == "addHostController", then it means someone closed the browser or the browser was crashed when we were last in Add Hosts wizard