Fixes cluster_deletion task binding

Closes-Bug:#1282992

Change-Id: I259e1c4d3dfc3511d4d05d50260933ad9811aace
This commit is contained in:
jkirnosova 2014-02-21 14:50:24 +04:00
parent d528441c49
commit 06f683a493

View File

@ -75,7 +75,7 @@ function(models, utils, commonViews, dialogViews, clustersPageTemplate, clusterT
templateHelpers: _.pick(utils, 'showDiskSize', 'showMemorySize'),
updateInterval: 3000,
scheduleUpdate: function() {
if (this.model.task('cluster_deletion', ['running', 'ready']).length || this.model.tasks({group: 'deployment', status: 'running'}).length) {
if (this.model.task('cluster_deletion', ['running', 'ready']) || this.model.tasks({group: 'deployment', status: 'running'}).length) {
this.registerDeferred($.timeout(this.updateInterval).done(_.bind(this.update, this)));
}
},