ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject ambari git commit: AMBARI-19814. 'num_llap_nodes' should show up as non-editable property when non-ambari managed queue is selected (onechiporenko)
Date Tue, 14 Feb 2017 08:54:09 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk eb1b9cfaa -> e9e0a438a


AMBARI-19814. 'num_llap_nodes' should show up as non-editable property when non-ambari managed
queue is selected (onechiporenko)


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

Branch: refs/heads/trunk
Commit: e9e0a438a142ec9560ec9a5d8134d40a34efdacc
Parents: eb1b9cf
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Fri Feb 10 12:07:51 2017 +0200
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Tue Feb 14 10:54:05 2017 +0200

----------------------------------------------------------------------
 .../mixins/common/configs/widgets/unique/num_llap_nodes.js    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e9e0a438/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js b/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js
index a2df0fa..781a40a 100644
--- a/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js
+++ b/ambari-web/app/mixins/common/configs/widgets/unique/num_llap_nodes.js
@@ -45,9 +45,8 @@ App.NumLlapNodesWidgetMixin = Em.Mixin.create({
     var readOnly = this.get('readOnly');
     this.set('disabled', readOnly);
     this.set('supportSwitchToTextBox', !readOnly);
-    if (readOnly) {
-      this.toggleSlider('disable');
-    }
+    var action = readOnly ? 'disable' : 'enable';
+    this.toggleSlider(action);
   }.observes('readOnly'),
 
   toggleWidgetView: function() {
@@ -63,7 +62,7 @@ App.NumLlapNodesWidgetMixin = Em.Mixin.create({
   toggleSlider: function (action) {
     var self = this;
     Em.run.next(function () {
-      self.get('slider')[action]();
+      Em.tryInvoke(self.get('slider'), action);
     });
   }
 


Mime
View raw message