ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject [2/2] ambari git commit: AMBARI-13653 Ranger authentication method when updated via recommendation API doe not change the related accordion. (ababiichuk)
Date Fri, 30 Oct 2015 10:25:36 GMT
AMBARI-13653 Ranger authentication method when updated via recommendation API doe not change
the related accordion. (ababiichuk)


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

Branch: refs/heads/branch-2.1
Commit: 27b1fac337376eb0b88b46c3fb6e9673a5eaadff
Parents: 314cbf9
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Fri Oct 30 12:18:42 2015 +0200
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Fri Oct 30 12:25:31 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/views/common/controls_view.js | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/27b1fac3/ambari-web/app/views/common/controls_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/controls_view.js b/ambari-web/app/views/common/controls_view.js
index 46df3b4..2a4666d 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -775,13 +775,9 @@ App.ServiceConfigRadioButton = Ember.Checkbox.extend(App.SupportsDependentConfig
     if (this.get('clicked')) {
       this.sendRequestRorDependentConfigs(this.get('parentView.serviceConfig'));
       Em.run.next(this, function() {
-        console.debug('App.ServiceConfigRadioButton.onChecked');
         this.set('parentView.serviceConfig.value', this.get('value'));
-        var components = this.get('parentView.serviceConfig.options');
-        if (components && components.someProperty('foreignKeys')) {
-          this.get('controller.stepConfigs').findProperty('serviceName', this.get('parentView.serviceConfig.serviceName')).propertyDidChange('errorCount');
-        }
         this.set('clicked', false);
+        this.updateForeignKeys();
       });
     }
   }.observes('checked'),
@@ -789,9 +785,18 @@ App.ServiceConfigRadioButton = Ember.Checkbox.extend(App.SupportsDependentConfig
   updateCheck: function() {
     if (!this.get('clicked')) {
       this.set('checked', this.get('parentView.serviceConfig.value') === this.get('value'));
+      this.updateForeignKeys();
     }
   }.observes('parentView.serviceConfig.value'),
 
+  updateForeignKeys: function() {
+    var components = this.get('parentView.serviceConfig.options');
+    if (components && components.someProperty('foreignKeys')) {
+      this.get('controller.stepConfigs').findProperty('serviceName', this.get('parentView.serviceConfig.serviceName')).propertyDidChange('errorCount');
+    }
+  },
+
+
   disabled: function () {
     return !this.get('parentView.serviceConfig.isEditable') ||
       !['addServiceController', 'installerController'].contains(this.get('controller.wizardController.name'))
&& /^New\s\w+\sDatabase$/.test(this.get('value'));


Mime
View raw message