浏览代码

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 10 年之前
父节点
当前提交
77593a2a37
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ambari-web/app/views/common/configs/widgets/plain_config_text_field.js

+ 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'),