소스 검색

AMBARI-7258 Slider View: FE - Make ganglia monitoring optional when creating app, second patch. (atkach)

atkach 10 년 전
부모
커밋
8778556f43
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      contrib/views/slider/src/main/resources/ui/app/controllers/createAppWizard/step3_controller.js

+ 2 - 2
contrib/views/slider/src/main/resources/ui/app/controllers/createAppWizard/step3_controller.js

@@ -127,8 +127,8 @@ App.CreateAppWizardStep3Controller = Ember.ObjectController.extend({
     Object.keys(newAppConfigs).forEach(function (key) {
     Object.keys(newAppConfigs).forEach(function (key) {
       var label = (!!key.match('^site.')) ? key.substr(5) : key;
       var label = (!!key.match('^site.')) ? key.substr(5) : key;
       var configSetting = (configSettings[key]) ?
       var configSetting = (configSettings[key]) ?
-        $.extend({name: key, value: configs[key], label: label}, configSettings[key]) :
-        {name: key, value: configs[key], label: label};
+        $.extend({name: key, value: newAppConfigs[key], label: label}, configSettings[key]) :
+        {name: key, value: newAppConfigs[key], label: label};
 
 
       if (key === "site.global.ganglia_server_host" && !!setDefaults && App.get('gangliaHost')) {
       if (key === "site.global.ganglia_server_host" && !!setDefaults && App.get('gangliaHost')) {
         configSetting.value = App.get('gangliaHost');
         configSetting.value = App.get('gangliaHost');