ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject git commit: AMBARI-4114. JS error on HA Step 3. (alexantonenko)
Date Wed, 18 Dec 2013 19:04:45 GMT
Updated Branches:
  refs/heads/branch-1.4.3 ee5bd5963 -> eb14b87c1


AMBARI-4114. JS error on HA Step 3. (alexantonenko)


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

Branch: refs/heads/branch-1.4.3
Commit: eb14b87c13c4c1c86210ec2383d019eac7f9ac77
Parents: ee5bd59
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Wed Dec 18 21:02:41 2013 +0200
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Wed Dec 18 21:02:41 2013 +0200

----------------------------------------------------------------------
 ambari-web/app/views/common/configs/services_config.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/eb14b87c/ambari-web/app/views/common/configs/services_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/services_config.js b/ambari-web/app/views/common/configs/services_config.js
index e262d36..23bd56e 100644
--- a/ambari-web/app/views/common/configs/services_config.js
+++ b/ambari-web/app/views/common/configs/services_config.js
@@ -66,6 +66,9 @@ App.ServiceConfigView = Em.View.extend({
    */
   checkCanEdit: function () {
     var controller = App.get('router.'+this.get('controller.name'));
+    if(!this.get('controller.selectedService.configCategories')){
+      return;
+    }
     var canAddProperty = true;
     if(controller.get('selectedConfigGroup') && !controller.get('selectedConfigGroup').isDefault){
      canAddProperty = false;


Mime
View raw message