瀏覽代碼

AMBARI-2670. Start button not available for various components within 10 sec after stop operation finishes. (Antonenko Alexander via yusaku)

Yusaku Sako 12 年之前
父節點
當前提交
2f16174c3b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ambari-web/app/controllers/global/cluster_controller.js

+ 2 - 2
ambari-web/app/controllers/global/cluster_controller.js

@@ -241,7 +241,7 @@ App.ClusterController = Em.Controller.extend({
       callback();
       return false;
     }
-    
+
     var servicesUrl = this.getUrl('/data/dashboard/services.json', '/services?fields=ServiceInfo,components/host_components/HostRoles/desired_state,components/host_components/HostRoles/state');
 
     App.HttpClient.get(servicesUrl, App.statusMapper, {
@@ -267,7 +267,7 @@ App.ClusterController = Em.Controller.extend({
     if(!this.get('isWorking')){
       return false;
     }
-    App.updater.run(this, 'loadUpdatedStatus', 'isWorking'); //update will not run it immediately
+    App.updater.run(this, 'loadUpdatedStatus', 'isWorking', App.componentsUpdateInterval); //update will not run it immediately
     App.updater.run(this, 'loadAlerts', 'isWorking'); //update will not run it immediately
     return true;
   }.observes('isWorking'),