Ver Fonte

AMBARI-11562. The value of 'Max idle tez session length' from the default Hive config group can be changed when you are at setting of aother Hive config group (alexantonenko)

Alex Antonenko há 10 anos atrás
pai
commit
77593a2a37

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

@@ -30,6 +30,10 @@ App.PlainConfigTextField = Ember.View.extend(App.SupportsDependentConfigs, App.W
   classNames: ['widget-config-plain-text-field'],
   placeholderBinding: 'config.savedValue',
 
+  disabled: function() {
+    return !this.get('config.isEditable');
+  }.property('config.isEditable'),
+
   configLabel: function() {
     return this.get('config.stackConfigProperty.displayName') || this.get('config.displayName') || this.get('config.name');
   }.property('config.name', 'config.displayName'),