Browse Source

AMBARI-11035. Configs: invalid input should not be allowed

Srimanth Gunturi 10 years ago
parent
commit
db47268f67

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

@@ -35,6 +35,11 @@ App.PlainConfigTextField = Ember.View.extend(App.SupportsDependentConfigs, {
 
   focusOut: function () {
     this.sendRequestRorDependentConfigs(this.get('serviceConfig'));
+  },
+
+  didInsertElement: function() {
+    this._super();
+    this.set('serviceConfig.displayType', Em.getWithDefault(this, 'serviceConfig.stackConfigProperty.valueAttributes.type', 'string'));
   }
 
 });