ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-12919. UI lag causing "Edit" button to be missed from Admin Kerberos Tab (alexantonenko)
Date Fri, 28 Aug 2015 14:55:51 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 92d345591 -> 48ba8e15d


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/48ba8e15
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/48ba8e15
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/48ba8e15

Branch: refs/heads/trunk
Commit: 48ba8e15d628f55f991d57e6093237bb83a2f3e4
Parents: 92d3455
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Fri Aug 28 17:50:51 2015 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Fri Aug 28 17:55:45 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/48ba8e15/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 85f9afd..f4d2428 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 () {


Mime
View raw message