You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/08/28 16:54:46 UTC

ambari git commit: AMBARI-12919. UI lag causing "Edit" button to be missed from Admin Kerberos Tab (alexantonenko)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 38766da3e -> d5d630fd7


AMBARI-12919. UI lag causing "Edit" button to be missed from Admin Kerberos Tab (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d5d630fd
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d5d630fd
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d5d630fd

Branch: refs/heads/branch-2.1
Commit: d5d630fd73415ce5cb52c7528f68d472400e47eb
Parents: 38766da
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri Aug 28 17:50:51 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri Aug 28 17:54:40 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/admin/kerberos.js | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d5d630fd/ambari-web/app/controllers/main/admin/kerberos.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/kerberos.js b/ambari-web/app/controllers/main/admin/kerberos.js
index 0bd9f90..ab4b2db 100644
--- a/ambari-web/app/controllers/main/admin/kerberos.js
+++ b/ambari-web/app/controllers/main/admin/kerberos.js
@@ -466,13 +466,15 @@ App.MainAdminKerberosController = App.KerberosWizardStep4Controller.extend({
 
 
   makeConfigsEditable: function () {
-    this.set('isEditMode', true);
-    this.get('stepConfigs').forEach(function (_stepConfig) {
-      _stepConfig.get('configs').setEach('isEditable', true);
+    if (!this.get('stepConfigs') || !this.get('stepConfigs.length')) {
+      this.set('isEditMode', true);
+      this.get('stepConfigs').forEach(function (_stepConfig) {
+        _stepConfig.get('configs').setEach('isEditable', true);
         _stepConfig.get('configs').forEach(function (_config) {
           _config.set('isEditable', _config.get('name') != 'realm');
         });
-    }, this);
+      }, this);
+    }
   },
 
   _updateConfigs: function () {