浏览代码

AMBARI-7249. Slider View: On Create app wizard's 'Allocate Resources' page inputs are updated, and changes are removed (alexantonenko)

Alex Antonenko 10 年之前
父节点
当前提交
a3724c69cc

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

@@ -72,6 +72,7 @@ App.CreateAppWizardStep2Controller = Ember.ArrayController.extend({
   initializeNewApp: function () {
   initializeNewApp: function () {
     var newApp = this.get('appWizardController.newApp');
     var newApp = this.get('appWizardController.newApp');
     this.set('newApp', newApp);
     this.set('newApp', newApp);
+    this.loadTypeComponents();
   },
   },
 
 
   /**
   /**
@@ -94,7 +95,7 @@ App.CreateAppWizardStep2Controller = Ember.ArrayController.extend({
       });
       });
       this.set('content', content);
       this.set('content', content);
     }
     }
-  }.observes('newApp.appType.components.length'),
+  },
 
 
   /**
   /**
    * Check if param is integer
    * Check if param is integer

+ 1 - 1
contrib/views/slider/src/main/resources/ui/app/models/slider_app_type.js

@@ -31,7 +31,7 @@ App.SliderAppType = DS.Model.extend({
   /**
   /**
    * @type {App.SliderAppTypeComponent[]}
    * @type {App.SliderAppTypeComponent[]}
    */
    */
-  components: DS.hasMany('sliderAppTypeComponent', {async:true}),
+  components: DS.hasMany('sliderAppTypeComponent'),
 
 
   /**
   /**
    * @type {string}
    * @type {string}