Forráskód Böngészése

AMBARI-17394 A text value edition of a slider config doesn't trigger recalculation of dependent properties. (atkach)

Andrii Tkach 9 éve
szülő
commit
1208b70ab9

+ 1 - 1
ambari-web/app/templates/common/configs/widgets/controls.hbs

@@ -22,7 +22,7 @@
 {{#if view.supportSwitchToTextBox}}
   {{#unless view.isPropertyUndefined}}
     <div {{bindAttr class="view.config.showAsTextBox::hide :left :widget-config-raw"}}>
-      {{view App.PlainConfigTextField sectionBinding="view.section" subSectionBinding="view.subSection" configBinding="view.config" disabledBinding="view.canNotEdit"}}
+      {{view App.PlainConfigTextField sectionBinding="view.section" subSectionBinding="view.subSection" configBinding="view.config" serviceConfigBinding="view.config" disabledBinding="view.canNotEdit"}}
     </div>
   {{/unless}}
 {{/if}}

+ 1 - 0
ambari-web/app/views/common/configs/widgets/plain_config_text_field.js

@@ -24,6 +24,7 @@
 var App = require('app');
 require('views/common/controls_view');
 
+//TODO should use only "serviceConfig" binding instead of "config"
 App.PlainConfigTextField = Ember.View.extend(App.SupportsDependentConfigs, App.WidgetPopoverSupport, App.ValueObserver, {
   templateName: require('templates/common/configs/widgets/plain_config_text_field'),
   valueBinding: 'config.value',