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 2017/01/16 18:29:03 UTC

[2/2] ambari git commit: AMBARI-19540. Possibly too frequent calls to stack advisor as user changes sliders (alexantonenko)

AMBARI-19540. Possibly too frequent calls to stack advisor as user changes sliders (alexantonenko)


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

Branch: refs/heads/trunk
Commit: 70b6598d6106deb49ae6e659710797c2d627455f
Parents: 3a489d0
Author: Alex Antonenko <hi...@gmail.com>
Authored: Mon Jan 16 20:17:15 2017 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Mon Jan 16 20:28:57 2017 +0200

----------------------------------------------------------------------
 ambari-web/app/templates/common/configs/widgets/controls.hbs | 7 +++++++
 ambari-web/app/views/common/controls_view.js                 | 1 +
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/70b6598d/ambari-web/app/templates/common/configs/widgets/controls.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/common/configs/widgets/controls.hbs b/ambari-web/app/templates/common/configs/widgets/controls.hbs
index cd4f5c2..5546493 100644
--- a/ambari-web/app/templates/common/configs/widgets/controls.hbs
+++ b/ambari-web/app/templates/common/configs/widgets/controls.hbs
@@ -22,6 +22,13 @@
 {{#if view.supportSwitchToTextBox}}
   {{#unless view.isPropertyUndefined}}
     <div {{bindAttr class="view.config.showAsTextBox::hide :left :widget-config-raw"}}>
+      {{view App.PlainConfigTextField
+        isVisibleBinding="view.config.showAsTextBox"
+        sectionBinding="view.section"
+        subSectionBinding="view.subSection"
+        configBinding="view.config"
+        serviceConfigBinding="view.config"
+        disabledBinding="view.canNotEdit"}}
       {{view App.PlainConfigTextField sectionBinding="view.section" subSectionBinding="view.subSection" configBinding="view.config" disabledBinding="view.canNotEdit"}}
     </div>
   {{/unless}}

http://git-wip-us.apache.org/repos/asf/ambari/blob/70b6598d/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 bcb90d8..4bd4a61 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -167,6 +167,7 @@ App.ValueObserver = Em.Mixin.create(App.SupportsDependentConfigs, {
   },
 
   onValueUpdate: function () {
+    if (!this.get('isVisible')) return;
     if (this.get('selected')) {
       var self = this, config = this.get('serviceConfig'),
         controller = this.get('controller');