ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jai...@apache.org
Subject ambari git commit: AMBARI-20432. ambari-web shows redundant configuration for "Number of nodes used by Hive's LLAP". (jaimin)
Date Tue, 14 Mar 2017 00:53:59 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 e6e56e8ba -> 3a1afd8c8


AMBARI-20432. ambari-web shows redundant configuration for "Number of nodes used by Hive's
LLAP". (jaimin)


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

Branch: refs/heads/branch-2.5
Commit: 3a1afd8c8ee462316888b3171c58fb0a902de98b
Parents: e6e56e8
Author: Jaimin Jetly <jaimin@hortonworks.com>
Authored: Mon Mar 13 17:52:44 2017 -0700
Committer: Jaimin Jetly <jaimin@hortonworks.com>
Committed: Mon Mar 13 17:53:45 2017 -0700

----------------------------------------------------------------------
 .../mixins/common/configs/widgets/unique/num_llap_nodes.js   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3a1afd8c/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 781a40a..e3e7efe 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
@@ -35,6 +35,10 @@ App.NumLlapNodesWidgetMixin = Em.Mixin.create({
    * @type {boolean}
    */
   doNotShowWidget: function () {
+    var self = this;
+    Em.run.next(function () {
+      self.handleReadOnlyAttribute();
+    });
     if (this.get('readOnly')) {
       return false;
     }
@@ -42,12 +46,12 @@ App.NumLlapNodesWidgetMixin = Em.Mixin.create({
   }.property('isPropertyUndefined', 'config.showAsTextBox', 'readOnly'),
 
   handleReadOnlyAttribute: function () {
-    var readOnly = this.get('readOnly');
+    var readOnly = this.get('readOnly') || false;
     this.set('disabled', readOnly);
     this.set('supportSwitchToTextBox', !readOnly);
     var action = readOnly ? 'disable' : 'enable';
     this.toggleSlider(action);
-  }.observes('readOnly'),
+  },
 
   toggleWidgetView: function() {
     this._super();


Mime
View raw message