瀏覽代碼

AMBARI-12160. It is not possible to change Oozie DB/Hive DB after blueprint install (akovalenko)

Aleksandr Kovalenko 10 年之前
父節點
當前提交
65b59e51fc
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      ambari-web/app/utils/config.js

+ 3 - 2
ambari-web/app/utils/config.js

@@ -304,11 +304,12 @@ App.config = Em.Object.create({
         var value = this.parseValue(properties[index], configsPropertyDef, advancedConfig);
         var serviceConfigObj = Em.Object.create({
           name: index,
+          displayName: (configsPropertyDef && Em.get(configsPropertyDef, 'displayName')) || index,
           value: value,
           savedValue: value,
           recommendedValue: advancedConfig ? Em.get(advancedConfig, 'recommendedValue') : null,
           filename: filename,
-          isUserProperty: !advancedConfig,
+          isUserProperty: !configsPropertyDef,
           isVisible: !!service,
           isOverridable: true,
           isReconfigurable: true,
@@ -336,7 +337,7 @@ App.config = Em.Object.create({
         if (!this.getBySiteName(serviceConfigObj.get('filename')).someProperty('name', index)) {
           if (configsPropertyDef) {
             if (Em.get(configsPropertyDef, 'isRequiredByAgent') === false) {
-              configs.push(serviceConfigObj);
+              configs.push(App.ServiceConfigProperty.create(serviceConfigObj));
               continue;
             }
             this.handleSpecialProperties(serviceConfigObj);