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 2013/12/18 20:04:45 UTC
git commit: AMBARI-4114. JS error on HA Step 3. (alexantonenko)
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 <hi...@gmail.com>
Authored: Wed Dec 18 21:02:41 2013 +0200
Committer: Alex Antonenko <hi...@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;