You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2015/01/25 21:58:18 UTC
ambari git commit: AMBARI-9325. Kerberos: All other steps should be
disabled when "Install and Test Kerberos" is on progress. (akovalenko)
Repository: ambari
Updated Branches:
refs/heads/trunk c101ddfea -> b4dbd5df0
AMBARI-9325. Kerberos: All other steps should be disabled when "Install and Test Kerberos" is on progress. (akovalenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b4dbd5df
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b4dbd5df
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b4dbd5df
Branch: refs/heads/trunk
Commit: b4dbd5df0c32e80a86fabaac22f0fb3f43fc2157
Parents: c101ddf
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Sun Jan 25 22:22:08 2015 +0200
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Sun Jan 25 22:23:43 2015 +0200
----------------------------------------------------------------------
.../main/admin/kerberos/step3_controller.js | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/b4dbd5df/ambari-web/app/controllers/main/admin/kerberos/step3_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/kerberos/step3_controller.js b/ambari-web/app/controllers/main/admin/kerberos/step3_controller.js
index 283cfb2..b66f146 100644
--- a/ambari-web/app/controllers/main/admin/kerberos/step3_controller.js
+++ b/ambari-web/app/controllers/main/admin/kerberos/step3_controller.js
@@ -24,6 +24,11 @@ App.KerberosWizardStep3Controller = App.KerberosProgressPageController.extend({
commands: ['installKerberos', 'testKerberos'],
+ loadStep: function () {
+ this._super();
+ this.enableDisablePreviousSteps();
+ },
+
installKerberos: function() {
var self = this;
this.getKerberosClientState().done(function(data) {
@@ -71,6 +76,18 @@ App.KerberosWizardStep3Controller = App.KerberosProgressPageController.extend({
'actionName': this.serviceName + '_SERVICE_CHECK'
}
});
- }
+ },
+
+ /**
+ * Enable or disable previous steps according to tasks statuses
+ */
+ enableDisablePreviousSteps: function () {
+ var wizardController = App.router.get(this.get('content.controllerName'));
+ if (this.get('tasks').someProperty('status', 'FAILED')) {
+ wizardController.setStepsEnable();
+ } else {
+ wizardController.setLowerStepsDisable(3);
+ }
+ }.observes('tasks.@each.status')
});