Updated Branches: refs/heads/trunk 0ef3c9363 -> 2f16174c3
AMBARI-2670. Start button not available for various components within 10 sec after stop operation finishes. (Antonenko Alexander via yusaku) Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/2f16174c Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/2f16174c Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/2f16174c Branch: refs/heads/trunk Commit: 2f16174c3bb406d1592a350cf2fdfe63bb86974d Parents: 0ef3c93 Author: Yusaku Sako <[email protected]> Authored: Thu Jul 18 10:27:23 2013 -0700 Committer: Yusaku Sako <[email protected]> Committed: Thu Jul 18 10:27:23 2013 -0700 ---------------------------------------------------------------------- ambari-web/app/controllers/global/cluster_controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/2f16174c/ambari-web/app/controllers/global/cluster_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/global/cluster_controller.js b/ambari-web/app/controllers/global/cluster_controller.js index 12b4d54..1055f68 100644 --- a/ambari-web/app/controllers/global/cluster_controller.js +++ b/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'),
